[PATCH] D29847: [LV] Extend trunc optimization to all IVs with constant integer steps

Matthew Simpson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 13 14:17:56 PST 2017


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

- I updated patch so that we extend the truncate optimization to non-primary induction variables only if the truncate isn't already free.
- I factored out the logic into a helper so we can keep things in sync easier.
- I added a test case for AArch64 showing that we keep a free truncate.


https://reviews.llvm.org/D29847

Files:
  lib/Transforms/Vectorize/LoopVectorize.cpp
  test/Transforms/LoopVectorize/AArch64/induction-trunc.ll
  test/Transforms/LoopVectorize/induction.ll
  test/Transforms/LoopVectorize/reverse_iter.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29847.88256.patch
Type: text/x-patch
Size: 7830 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170213/3c5ac6f0/attachment.bin>


More information about the llvm-commits mailing list