[PATCH] D21631: [LV] Look through PHIs when collecting uniform values

Michael Kuperstein via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 23 15:14:20 PDT 2016


mkuper added inline comments.

================
Comment at: test/Transforms/LoopVectorize/X86/uniform-phi.ll:7
@@ +6,3 @@
+; CHECK-LABEL: test
+; CHECK: LV: Found uniform instruction:   %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ]
+; CHECK: LV: Found uniform instruction:   %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
----------------
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.


http://reviews.llvm.org/D21631





More information about the llvm-commits mailing list