[llvm] [RISCV] Add a rematerializable pseudo instruction for LUI+ADDI for global addresses. (PR #93142)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Fri May 24 08:05:06 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), []>,
----------------
preames wrote:
Maybe PseudoLUIADDI? I agree that LIaddr isn't super clear.
You should also add a comment above the pseudo which describes its purpose.
https://github.com/llvm/llvm-project/pull/93142
More information about the llvm-commits
mailing list