[PATCH] D88873: [LV] Collect dead induction truncates

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 6 00:20:11 PDT 2020


dmgreen created this revision.
dmgreen added reviewers: gilr, Ayal, fhahn, mssimpso, rengolin, SjoerdMeijer.
Herald added subscribers: rogfer01, bollu, hiraditya.
Herald added a project: LLVM.
dmgreen requested review of this revision.
Herald added a subscriber: vkmr.

We currently collect the ICmp and Add from an induction variable, marking them as dead so that vplan values are not created for them. This extends that to include any single use trunk from the ICmp, which allows the Add to more readily be removed too.

This can help with costing vplan nodes, as the ICmp and Add are more reliably removed and are not double-counted.


https://reviews.llvm.org/D88873

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/ARM/tail-folding-not-allowed.ll
  llvm/test/Transforms/LoopVectorize/X86/pr36524.ll
  llvm/test/Transforms/LoopVectorize/X86/tail_loop_folding.ll
  llvm/test/Transforms/LoopVectorize/followup.ll
  llvm/test/Transforms/LoopVectorize/if-pred-stores.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88873.296369.patch
Type: text/x-patch
Size: 12363 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201006/3a859e88/attachment.bin>


More information about the llvm-commits mailing list