[llvm] r189281 - LoopVectorize: Implement partial loop unrolling when vectorization is not profitable.
Andrew Trick
atrick at apple.com
Thu Aug 29 14:03:37 PDT 2013
On Aug 28, 2013, at 4:08 PM, Renato Golin <renato.golin at linaro.org> wrote:
> On the other hand, maybe the loop-unrolling pass should be merged into the loop vectorizer...
Yes, targets that want partial unrolling should use the loop vectorizer pass. The analysis the the vectorizer does to determine a profitable unroll factor is applicable even without vector support. Partial unrolling is sort of ILP-level vectorization. Your previous email explained pretty well why it’s all lumped into one pass.
Full unrolling is done for completely different reasons and can run as an early pass.
-Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130829/f9eca675/attachment.html>
More information about the llvm-commits
mailing list