summaryrefslogtreecommitdiff
path: root/test
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
commitd54fed27865dcbc69932e1e6c372bb5a932e662a (patch)
tree7696f8df2fe3099cef1cdac82f3485da5eae252d /test
parentc4265e1d68a88791a004224aac7af9e914a0d411 (diff)
downloadllvm-d54fed27865dcbc69932e1e6c372bb5a932e662a.tar.gz
llvm-d54fed27865dcbc69932e1e6c372bb5a932e662a.tar.bz2
llvm-d54fed27865dcbc69932e1e6c372bb5a932e662a.tar.xz
Loop Vectorizer: Update the cost model of scatter/gather operations and make
them more expensive. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170995 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/LoopVectorize/X86/cost-model.ll5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Transforms/LoopVectorize/X86/cost-model.ll b/test/Transforms/LoopVectorize/X86/cost-model.ll
index 628f9912c8..b7f479acf9 100644
--- a/test/Transforms/LoopVectorize/X86/cost-model.ll
+++ b/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: