[PATCH] D115185: [ARM] Fold away CMP/CSINC from CMOV

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 6 13:45:31 PST 2021


dmgreen created this revision.
dmgreen added reviewers: SjoerdMeijer, samtebbs, ostannard, simon_tatham.
Herald added subscribers: hiraditya, kristof.beyls.
dmgreen requested review of this revision.
Herald added a project: LLVM.

This makes use of the code in D114013 <https://reviews.llvm.org/D114013> to fold away unnecessary CMPZ/CSINC starting from a CMOV, in a similar way to how we fold away CSINV/CSINC/etc


https://reviews.llvm.org/D115185

Files:
  llvm/lib/Target/ARM/ARMISelLowering.cpp
  llvm/test/CodeGen/Thumb2/mve-pred-or.ll
  llvm/test/CodeGen/Thumb2/mve-pred-vselect.ll
  llvm/test/CodeGen/Thumb2/mve-pred-xor.ll
  llvm/test/CodeGen/Thumb2/mve-saturating-arith.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115185.392165.patch
Type: text/x-patch
Size: 7822 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211206/a1be517f/attachment.bin>


More information about the llvm-commits mailing list