diff --git a/llvm/lib/Target/EraVM/EraVMInstrInfo.td b/llvm/lib/Target/EraVM/EraVMInstrInfo.td index 010f34a256e8..6eaae3cb8ebc 100644 --- a/llvm/lib/Target/EraVM/EraVMInstrInfo.td +++ b/llvm/lib/Target/EraVM/EraVMInstrInfo.td @@ -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)]>; }