[PATCH] D92879: [PowerPC] Materialize 34 bit constants with pli on Power 10.

Lei Huang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 17 08:58:25 PST 2020


lei added inline comments.


================
Comment at: llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1025
 
+static SDNode *selectI64ImmDirectPrefix(SelectionDAG *CurDAG, const SDLoc &dl,
+                                        uint64_t Imm, unsigned &InstCnt) {
----------------
doc.


================
Comment at: llvm/lib/Target/PowerPC/PPCInstrPrefix.td:2621
 let Predicates = [PrefixInstrs] in {
+  def : Pat<(i32 imm34:$imm), (PLI (getImmAs64BitInt imm:$imm))>;
+  def : Pat<(i64 imm34:$imm), (PLI8 (getImmAs64BitInt imm:$imm))>;
----------------
tc?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92879/new/

https://reviews.llvm.org/D92879



More information about the llvm-commits mailing list