[llvm] [RISCV] Add a rematerializable pseudo instruction for LUI+ADDI for global addresses. (PR #93142)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu May 23 07:26:01 PDT 2024
================
@@ -1311,6 +1311,22 @@ def : Pat<(FrameAddrRegImm (iPTR GPR:$rs1), simm12:$imm12),
/// HI and ADD_LO address nodes.
+let Size = 8, isReMaterializable = 1 in
+def PseudoLIaddr : Pseudo<(outs GPR:$dst), (ins uimm20_lui:$hi, simm12:$lo), []>,
+ Sched<[WriteIALU]>;
----------------
topperc wrote:
There are no register operands so they wouldn't be associated with anything.
https://github.com/llvm/llvm-project/pull/93142
More information about the llvm-commits
mailing list