[PATCH] D29956: [LV] Remove constant-step restriction for vector phi creation
Matthew Simpson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 14 11:52:01 PST 2017
mssimpso created this revision.
Herald added a subscriber: mzolotukhin.
We previously only created a vector phi node for an induction variable if its step had a constant integer type. However, the step actually only needs to be loop-invariant. This patch allows a non-constant step if it is loop-invariant and has an integer type.
https://reviews.llvm.org/D29956
Files:
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/induction-step.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29956.88411.patch
Type: text/x-patch
Size: 13598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170214/bfcc6fe7/attachment.bin>
More information about the llvm-commits
mailing list