[PATCH] D122051: [RISCV] The immediate version of sgt/ugt lowering to slti/sltiu + xori

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 29 02:32:40 PDT 2022


benshi001 added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfo.td:355
+// A 12-bit signed immediate sub one and exclude zero
+def simm12_sub1_nonzero : PatLeaf<(imm), [{
+  if (!N->hasOneUse())
----------------
craig.topper wrote:
> Use `minus1` instead of `sub1` to match better with the `plus1` PatFrag abobe.
sorry, I did not notice your comments when commiting, and I will change that to `minus1` in my next commit.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D122051



More information about the llvm-commits mailing list