[PATCH] D115188: [ARM] Extend IsCMPZCSINC to handle CMOV

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


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

A `CMOV 1, 0, CC, %cpsr, Cmp` is the same as a `CSINC 0, 0, CC, Cmp`, and can be treated the same in IsCMPZCSINC added in D114013 <https://reviews.llvm.org/D114013>. This allows us to remove the unnecessary CMOV in the same way that we could remove a CSINC.


https://reviews.llvm.org/D115188

Files:
  llvm/lib/Target/ARM/ARMISelLowering.cpp
  llvm/test/CodeGen/ARM/fp16-fullfp16.ll
  llvm/test/CodeGen/ARM/fpclamptosat_vec.ll
  llvm/test/CodeGen/Thumb2/active_lane_mask.ll
  llvm/test/CodeGen/Thumb2/mve-fpclamptosat_vec.ll
  llvm/test/CodeGen/Thumb2/mve-masked-ldst.ll
  llvm/test/CodeGen/Thumb2/mve-masked-load.ll
  llvm/test/CodeGen/Thumb2/mve-masked-store.ll
  llvm/test/CodeGen/Thumb2/mve-minmax.ll
  llvm/test/CodeGen/Thumb2/mve-minmaxi.ll
  llvm/test/CodeGen/Thumb2/mve-pred-ext.ll
  llvm/test/CodeGen/Thumb2/mve-satmul-loops.ll
  llvm/test/CodeGen/Thumb2/mve-saturating-arith.ll
  llvm/test/CodeGen/Thumb2/mve-vcmp.ll
  llvm/test/CodeGen/Thumb2/mve-vcmpf.ll
  llvm/test/CodeGen/Thumb2/mve-vcmpfr.ll
  llvm/test/CodeGen/Thumb2/mve-vcmpfz.ll
  llvm/test/CodeGen/Thumb2/mve-vcmpr.ll
  llvm/test/CodeGen/Thumb2/mve-vqmovn.ll
  llvm/test/CodeGen/Thumb2/mve-vqshrn.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115188.392172.patch
Type: text/x-patch
Size: 177100 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211206/ebd7609a/attachment-0001.bin>


More information about the llvm-commits mailing list