This is an archive of the discontinued LLVM Phabricator instance.

[LV] Fix insertion point for shuffle vectors in first order recurrence
ClosedPublic

Authored by anna on May 8 2017, 8:31 AM.

Details

Summary

In first order recurrence vectorization, when the previous value is a phi node, we need to
set the insertion point to the first non-phi node.
We can have the previous value being a phi node, due to the generation of new
IVs as part of trunc optimization [1].

[1] https://reviews.llvm.org/rL294967

Event Timeline

anna created this revision.May 8 2017, 8:31 AM
mkuper accepted this revision.May 8 2017, 3:27 PM

LGTM

This revision is now accepted and ready to land.May 8 2017, 3:27 PM
This revision was automatically updated to reflect the committed changes.