summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopVectorize/gcc-examples.ll
diff options
context:
space:
mode:
authorPaul Redmond <paul.redmond@intel.com>2013-01-04 22:10:16 +0000
committerPaul Redmond <paul.redmond@intel.com>2013-01-04 22:10:16 +0000
commit874f01e9565541992ef6e9b35e83370533dc4ff1 (patch)
tree508e4d08aa24debad5841bc517e7d5bb7ba98034 /llvm/test/Transforms/LoopVectorize/gcc-examples.ll
parentcad9b53c02fc7f4990afd64c59b2b4e44108fe11 (diff)
downloadbcm5719-llvm-874f01e9565541992ef6e9b35e83370533dc4ff1.tar.gz
bcm5719-llvm-874f01e9565541992ef6e9b35e83370533dc4ff1.zip
Do not vectorize loops with subtraction reductions
Since subtraction does not commute the loop vectorizer incorrectly vectorizes reductions such as x = A[i] - x. Disabling for now. llvm-svn: 171537
Diffstat (limited to 'llvm/test/Transforms/LoopVectorize/gcc-examples.ll')
-rw-r--r--llvm/test/Transforms/LoopVectorize/gcc-examples.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/gcc-examples.ll b/llvm/test/Transforms/LoopVectorize/gcc-examples.ll
index 652c2a0d025..e52a3f164a3 100644
--- a/llvm/test/Transforms/LoopVectorize/gcc-examples.ll
+++ b/llvm/test/Transforms/LoopVectorize/gcc-examples.ll
@@ -241,7 +241,7 @@ define void @example8(i32 %x) nounwind uwtable ssp {
}
;CHECK: @example9
-;CHECK: phi <4 x i32>
+;CHECK-NOT: phi <4 x i32>
;CHECK: ret i32
define i32 @example9() nounwind uwtable readonly ssp {
br label %1
OpenPOWER on IntegriCloud