[PATCH] D21620: [LV] Don't widen trivial induction variables

Matthew Simpson via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 23 10:08:49 PDT 2016


mssimpso updated this revision to Diff 61696.
mssimpso added a comment.

Addressed Michael's initial comments.

- Reused collectValuesToIgnore for determining if an induction variable has any non-trivial users. We were already doing this in the cost model.
- Added another test case for the interleaved example we've been discussing.

Thanks!


http://reviews.llvm.org/D21620

Files:
  lib/Transforms/Vectorize/LoopVectorize.cpp
  test/Transforms/LoopVectorize/gep_with_bitcast.ll
  test/Transforms/LoopVectorize/induction.ll
  test/Transforms/LoopVectorize/iv_outside_user.ll
  test/Transforms/LoopVectorize/reverse_induction.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21620.61696.patch
Type: text/x-patch
Size: 19918 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160623/08038115/attachment-0001.bin>


More information about the llvm-commits mailing list