[PATCH] D33058: [LV] Sink casts to unravel first order recurrence

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 11 14:21:07 PDT 2017


aemerson added a comment.

In https://reviews.llvm.org/D33058#752230, @Ayal wrote:

> The specific a[i]+a[i+1] case could indeed be handled before vectorization, namely by (LoopSimplify?) hoisting the cast along with the load. This applies in general to other instructions that operate symmetrically on both a[i] and a[i+1]. Instructions that only apply to a[i] need to be carefully placed inside the loop in order for it to be vectorized. It's probably better to have the vectorizer handle such motion; nothing keeps these instructions from returning back to their original positions.
>
> Sounds reasonable?


Yep, thanks.


https://reviews.llvm.org/D33058





More information about the llvm-commits mailing list