From 33e8274a385de3a7f314bcaaf445cd833945c057 Mon Sep 17 00:00:00 2001 From: Dmitry Borisenkov Date: Sat, 17 Aug 2024 15:09:26 +0200 Subject: [PATCH] [WIP] cheap moveimm --- llvm/lib/Target/EraVM/EraVMInstrInfo.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)]>; }