[llvm] [RISCV] Add a rematerializable pseudo instruction for LUI+ADDI for global addresses. (PR #93142)
Pengcheng Wang via llvm-commits
llvm-commits at lists.llvm.org
Thu May 23 00:38:04 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]>;
----------------
wangpc-pp wrote:
Don't we need `SchedRead`s here?
https://github.com/llvm/llvm-project/pull/93142
More information about the llvm-commits
mailing list