aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/CostModel/X86/arith.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/arith.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/arith.ll')
-rw-r--r--test/Analysis/CostModel/X86/arith.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Analysis/CostModel/X86/arith.ll b/test/Analysis/CostModel/X86/arith.ll
index 37cca8d540..ae78d44aeb 100644
--- a/test/Analysis/CostModel/X86/arith.ll
+++ b/test/Analysis/CostModel/X86/arith.ll
@@ -14,7 +14,7 @@ define i32 @add(i32 %arg) {
%D = add <4 x i64> undef, undef
;CHECK: cost of 8 {{.*}} add
%E = add <8 x i64> undef, undef
- ;CHECK: cost of 1 {{.*}} ret
+ ;CHECK: cost of 0 {{.*}} ret
ret i32 undef
}
@@ -28,7 +28,7 @@ define i32 @xor(i32 %arg) {
%C = xor <2 x i64> undef, undef
;CHECK: cost of 1 {{.*}} xor
%D = xor <4 x i64> undef, undef
- ;CHECK: cost of 1 {{.*}} ret
+ ;CHECK: cost of 0 {{.*}} ret
ret i32 undef
}