[PATCH] D159131: [RISCV][GlobalISel] Select G_ICMP

Nitin John Raj via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 30 15:48:22 PDT 2023


nitinjohnraj added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVGISel.td:19
+// Return an immediate value plus 1.
+def ImmPlus1 : SDNodeXForm<imm, [{
+    return CurDAG->getTargetConstant(N->getSExtValue() + 1, SDLoc(N),
----------------
Can't use SDNodeXForm, look into replacing this with a ComplexPattern


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D159131



More information about the llvm-commits mailing list