[PATCH] D132798: [RISCV] Add more invertible setccs to tryDemorganOfBooleanCondition.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 27 14:31:04 PDT 2022


craig.topper created this revision.
craig.topper added reviewers: reames, luismarques, asb, frasercrmck, kito-cheng.
Herald added subscribers: sunshaoce, VincentWu, luke957, StephenFan, vkmr, evandro, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

This builds on D132771 <https://reviews.llvm.org/D132771> to invert (setlt 0, X) to (setlt X, 1) and
vice versa.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132798

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/test/CodeGen/RISCV/setcc-logic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132798.456152.patch
Type: text/x-patch
Size: 4520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220827/08cc3db5/attachment.bin>


More information about the llvm-commits mailing list