Skip to content

Commit

Permalink
[WIP] cheap moveimm
Browse files Browse the repository at this point in the history
  • Loading branch information
akiramenai committed Aug 17, 2024
1 parent f11869a commit 33e8274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/EraVM/EraVMInstrInfo.td
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ def LOADCONST : Pseudo<(outs GR256:$val), (ins i256imm:$addr),
[(set GR256:$val, (load tconstpool:$addr))]>;
}

let isReMaterializable = 1, hasSideEffects = 0 in {
let isReMaterializable = 1, isAsCheapAsAMove = 1, hasSideEffects = 0 in {
def MOVEIMM : Pseudo<(outs GR256:$out), (ins i256imm:$val),
[(set GR256:$out, imm:$val)]>;
}
Expand Down

0 comments on commit 33e8274

Please sign in to comment.