summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopVectorize
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-12-23 07:23:55 +0000
committerNadav Rotem <nrotem@apple.com>2012-12-23 07:23:55 +0000
commit2cade68025a29feb887212941f6ba7c3d8a37881 (patch)
tree8cf191e8d0b5b2364a536b5b382b4c85b04c2876 /llvm/test/Transforms/LoopVectorize
parentfe25144e6819d8ac47658afce4789c6029d7ad5c (diff)
downloadbcm5719-llvm-2cade68025a29feb887212941f6ba7c3d8a37881.tar.gz
bcm5719-llvm-2cade68025a29feb887212941f6ba7c3d8a37881.zip
Loop Vectorizer: Update the cost model of scatter/gather operations and make
them more expensive. llvm-svn: 170995
Diffstat (limited to 'llvm/test/Transforms/LoopVectorize')
-rw-r--r--llvm/test/Transforms/LoopVectorize/X86/cost-model.ll5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/test/Transforms/LoopVectorize/X86/cost-model.ll b/llvm/test/Transforms/LoopVectorize/X86/cost-model.ll
index 628f9912c8c..b7f479acf96 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/cost-model.ll
+++ b/llvm/test/Transforms/LoopVectorize/X86/cost-model.ll
@@ -8,8 +8,11 @@ target triple = "x86_64-apple-macosx10.8.0"
@d = common global [2048 x i32] zeroinitializer, align 16
@a = common global [2048 x i32] zeroinitializer, align 16
+; The program below gathers and scatters data. We better not vectorize it.
;CHECK: cost_model_1
-;CHECK: <4 x i32>
+;CHECK-NOT: <2 x i32>
+;CHECK-NOT: <4 x i32>
+;CHECK-NOT: <8 x i32>
;CHECK: ret void
define void @cost_model_1() nounwind uwtable noinline ssp {
entry:
OpenPOWER on IntegriCloud