summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopVectorize/gcc-examples.ll
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2012-11-13 12:59:33 +0000
committerDuncan Sands <baldrick@free.fr>2012-11-13 12:59:33 +0000
commite6beec6765ba7213cf949edd6204cb08e209e1e7 (patch)
tree3b95284f851edbb8ea5a561f51e422f9d5ecf2f5 /llvm/test/Transforms/LoopVectorize/gcc-examples.ll
parent3eb156306a156a24b935a2ecb4277a289c270005 (diff)
downloadbcm5719-llvm-e6beec6765ba7213cf949edd6204cb08e209e1e7.tar.gz
bcm5719-llvm-e6beec6765ba7213cf949edd6204cb08e209e1e7.zip
Relax the restrictions on vector of pointer types, and vector getelementptr.
Previously in a vector of pointers, the pointer couldn't be any pointer type, it had to be a pointer to an integer or floating point type. This is a hassle for dragonegg because the GCC vectorizer happily produces vectors of pointers where the pointer is a pointer to a struct or whatever. Vector getelementptr was restricted to just one index, but now that vectors of pointers can have any pointer type it is more natural to allow arbitrary vector getelementptrs. There is however the issue of struct GEPs, where if each lane chose different struct fields then from that point on each lane will be working down into unrelated types. This seems like too much pain for too little gain, so when you have a vector struct index all the elements are required to be the same. llvm-svn: 167828
Diffstat (limited to 'llvm/test/Transforms/LoopVectorize/gcc-examples.ll')
-rw-r--r--llvm/test/Transforms/LoopVectorize/gcc-examples.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/gcc-examples.ll b/llvm/test/Transforms/LoopVectorize/gcc-examples.ll
index fce29d24048..2243a77d3bc 100644
--- a/llvm/test/Transforms/LoopVectorize/gcc-examples.ll
+++ b/llvm/test/Transforms/LoopVectorize/gcc-examples.ll
@@ -391,9 +391,9 @@ define void @example13(i32** nocapture %A, i32** nocapture %B, i32* nocapture %o
ret void
}
-; Can't vectorize because of reductions.
+; Can vectorize.
;CHECK: @example14
-;CHECK-NOT: <4 x i32>
+;CHECK: <4 x i32>
;CHECK: ret void
define void @example14(i32** nocapture %in, i32** nocapture %coeff, i32* nocapture %out) nounwind uwtable ssp {
.preheader3:
OpenPOWER on IntegriCloud