[PATCH] D15906: [Vectorization] Actually return from error case in isStridedPtr

Tim Shen via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 5 21:55:05 PST 2016


timshen marked an inline comment as done.

================
Comment at: test/Analysis/LoopAccessAnalysis/interleave_innermost.ll:1
@@ +1,2 @@
+; RUN: opt -loop-vectorize -force-vector-interleave=1 -instcombine -S < %s | FileCheck %s
+; CHECK: %[[ENTRY:[^ ]+]] = getelementptr inbounds %StructA, %StructA* %{{[^ ]+}}, i64 -1, i32 1
----------------
majnemer wrote:
> Is -instcombine necessary here?
Not applicable. It was necessary, otherwise the old opt produces correct code.

================
Comment at: test/Analysis/LoopAccessAnalysis/interleave_innermost.ll:2
@@ +1,3 @@
+; RUN: opt -loop-vectorize -force-vector-interleave=1 -S < %s | FileCheck %s
+; CHECK: %[[PTR:[^ ]+]] = extractelement <4 x i32*> %broadcast.splat{{.*}}, i32 {{[0-9]+}}
+; CHECK: %[[ADJUSTED_PTR:[^ ]+]] = getelementptr i32, i32* %[[PTR]], i32 0
----------------
Not applicable. It was necessary, otherwise the old opt produces correct code.


http://reviews.llvm.org/D15906





More information about the llvm-commits mailing list