Skip to content

Commit fa5ee93

Browse files
committed
Fix copy+pasto in the memcpy patterns.
1 parent 62974b8 commit fa5ee93

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Target/WebAssembly/WebAssemblyInstrBulkMemory.td

+2-4
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,15 @@ defm COPY_A#B :
5959
BULK_I<(outs), (ins i32imm_op:$src_idx, i32imm_op:$dst_idx,
6060
rc:$dst, rc:$src, rc:$len),
6161
(outs), (ins i32imm_op:$src_idx, i32imm_op:$dst_idx),
62-
[(wasm_memcpy (i32 imm:$src_idx), (i32 imm:$dst_idx),
63-
rc:$dst, rc:$src, rc:$len
64-
)],
62+
[],
6563
"memory.copy\t$src_idx, $dst_idx, $dst, $src, $len",
6664
"memory.copy\t$src_idx, $dst_idx", 0x0a>;
6765

6866
let mayStore = 1 in
6967
defm FILL_A#B :
7068
BULK_I<(outs), (ins i32imm_op:$idx, rc:$dst, I32:$value, rc:$size),
7169
(outs), (ins i32imm_op:$idx),
72-
[(wasm_memset (i32 imm:$idx), rc:$dst, I32:$value, rc:$size)],
70+
[],
7371
"memory.fill\t$idx, $dst, $value, $size",
7472
"memory.fill\t$idx", 0x0b>;
7573
}

0 commit comments

Comments
 (0)