aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/CostModel/X86/vectorized-loop.ll
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-12-05 21:21:26 +0000
committerNadav Rotem <nrotem@apple.com>2012-12-05 21:21:26 +0000
commit0602bb46596485b43fa8b86abbc8485d502025ce (patch)
treec0d06457ae762383e00ca62e85b0b010803ffbdf /test/Analysis/CostModel/X86/vectorized-loop.ll
parentf2a1c83c86ceefb9a241aa728d1d1239a64b894e (diff)
Cost Model: change the default cost of control flow instructions (br / ret / ...) to zero.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/CostModel/X86/vectorized-loop.ll')
-rw-r--r--test/Analysis/CostModel/X86/vectorized-loop.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Analysis/CostModel/X86/vectorized-loop.ll b/test/Analysis/CostModel/X86/vectorized-loop.ll
index 7919a9ca9a..6c9e111bb1 100644
--- a/test/Analysis/CostModel/X86/vectorized-loop.ll
+++ b/test/Analysis/CostModel/X86/vectorized-loop.ll
@@ -41,7 +41,7 @@ vector.body: ; preds = %for.body.lr.ph, %ve
store <8 x i32> %11, <8 x i32>* %9, align 4
%index.next = add i64 %index, 8
%12 = icmp eq i64 %index.next, %end.idx.rnd.down
- ;CHECK: cost of 1 {{.*}} br
+ ;CHECK: cost of 0 {{.*}} br
br i1 %12, label %middle.block, label %vector.body
middle.block: ; preds = %vector.body, %for.body.lr.ph
@@ -65,11 +65,11 @@ for.body: ; preds = %middle.block, %for.
;CHECK: cost of 0 {{.*}} trunc
%16 = trunc i64 %indvars.iv.next to i32
%cmp = icmp slt i32 %16, %end
- ;CHECK: cost of 1 {{.*}} br
+ ;CHECK: cost of 0 {{.*}} br
br i1 %cmp, label %for.body, label %for.end
for.end: ; preds = %middle.block, %for.body, %entry
- ;CHECK: cost of 1 {{.*}} ret
+ ;CHECK: cost of 0 {{.*}} ret
ret i32 undef
}