The motivation is in the test-case: currently, we miss %indvars.iv.next, because it can not be reached by walking backwards from the branch.
Diff Detail
Diff Detail
Event Timeline
test/Transforms/LoopVectorize/X86/uniform-phi.ll | ||
---|---|---|
7 | And this is probably wrong, for the same reason as http://reviews.llvm.org/D20474#inline-183502 |
And this is probably wrong, for the same reason as http://reviews.llvm.org/D20474#inline-183502
We want to look through the PHI, but we don't want to mark the PHI itself uniform. I'll update the patch.