From bfe5e1817bd4badbdd1d3c9937db401db9d2d5c6 Mon Sep 17 00:00:00 2001 From: Matthew Simpson Date: Thu, 8 Sep 2016 21:38:26 +0000 Subject: [LV] Ensure proper handling of multi-use case when collecting uniforms The test case included in r280979 wasn't checking what it was supposed to be checking for the predicated store case. Fixing the test revealed that the multi-use case (when a pointer is used by both vectorized and scalarized memory accesses) wasn't being handled properly. We can't skip over non-consecutive-like pointers since they may have looked consecutive-like with a different memory access. llvm-svn: 280992 --- llvm/test/Transforms/LoopVectorize/consecutive-ptr-uniforms.ll | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'llvm/test/Transforms/LoopVectorize') diff --git a/llvm/test/Transforms/LoopVectorize/consecutive-ptr-uniforms.ll b/llvm/test/Transforms/LoopVectorize/consecutive-ptr-uniforms.ll index 66636f6a1b0..f1fc1aa6836 100644 --- a/llvm/test/Transforms/LoopVectorize/consecutive-ptr-uniforms.ll +++ b/llvm/test/Transforms/LoopVectorize/consecutive-ptr-uniforms.ll @@ -71,7 +71,9 @@ for.end: %tmp4 = phi i32 [ %tmp3, %for.body ] ret i32 %tmp4 } + ; CHECK-LABEL: interleaved_access_forward +; INTER-LABEL: interleaved_access_forward ; ; Check that a consecutive-like pointer used by a forward interleaved group is ; recognized as uniform and remains uniform after vectorization. When @@ -127,6 +129,7 @@ for.end: } ; CHECK-LABEL: interleaved_access_reverse +; INTER-LABEL: interleaved_access_reverse ; ; Check that a consecutive-like pointer used by a reverse interleaved group is ; recognized as uniform and remains uniform after vectorization. When @@ -185,7 +188,7 @@ for.end: ret i32 %tmp14 } -; CHECK-LABEL: predicated_store +; INTER-LABEL: predicated_store ; ; Check that a consecutive-like pointer used by a forward interleaved group and ; scalarized store is not recognized as uniform and is not uniform after -- cgit v1.2.3