[PATCH] D101688: [ARM] Constrain CMPZ shift combine to a single use

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 1 04:17:06 PDT 2021


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

We currently prefer t2CMPrs over t2CMPri when the node contains a shift. This can introduce more nodes if the shift has multiple uses though, as value from the shift will be needed anyway, and in the case of a t2CMPri compared with zero will more readily be removed entirely.


https://reviews.llvm.org/D101688

Files:
  llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
  llvm/lib/Target/ARM/ARMInstrThumb2.td
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/while-loops.ll
  llvm/test/CodeGen/Thumb2/mve-float32regloops.ll
  llvm/test/CodeGen/Thumb2/mve-postinc-lsr.ll
  llvm/test/CodeGen/Thumb2/mve-vldst4.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101688.342133.patch
Type: text/x-patch
Size: 13388 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210501/a88fab1b/attachment.bin>


More information about the llvm-commits mailing list