This is an archive of the discontinued LLVM Phabricator instance.

[LV] Look through PHIs when collecting uniform values
AbandonedPublic

Authored by mkuper on Jun 22 2016, 5:56 PM.

Details

Summary

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

Event Timeline

mkuper updated this revision to Diff 61630.Jun 22 2016, 5:56 PM
mkuper retitled this revision from to [LV] Look through PHIs when collecting uniform values.
mkuper updated this object.
mkuper added reviewers: wmi, danielcdh, hfinkel.
mkuper added subscribers: llvm-commits, nadav.
mkuper added inline comments.Jun 23 2016, 3:14 PM
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
We want to look through the PHI, but we don't want to mark the PHI itself uniform. I'll update the patch.

mkuper abandoned this revision.Jun 27 2016, 11:31 AM

Abandoning this in favor of http://reviews.llvm.org/D21755