summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/lsr-interesting-step.ll
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@apple.com>2014-03-20 19:55:52 +0000
committerJuergen Ributzka <juergen@apple.com>2014-03-20 19:55:52 +0000
commit228c72a841885aff0cb6871525e9aa69b8b8a410 (patch)
tree06f4c0d61dcc0e59a8ce35252bd11415b1390663 /test/CodeGen/X86/lsr-interesting-step.ll
parent9bb9615e1fd8e3d2654d3fe394ee6f486a0cb8a5 (diff)
downloadllvm-228c72a841885aff0cb6871525e9aa69b8b8a410.tar.gz
llvm-228c72a841885aff0cb6871525e9aa69b8b8a410.tar.bz2
llvm-228c72a841885aff0cb6871525e9aa69b8b8a410.tar.xz
[Constant Hoisting] Extend coverage of the constant hoisting pass.
This commit extends the coverage of the constant hoisting pass, adds additonal debug output and updates the function names according to the style guide. Related to <rdar://problem/16381500> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204389 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/lsr-interesting-step.ll')
-rw-r--r--test/CodeGen/X86/lsr-interesting-step.ll14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/CodeGen/X86/lsr-interesting-step.ll b/test/CodeGen/X86/lsr-interesting-step.ll
index d4a7ac7da1..8ea3c53de4 100644
--- a/test/CodeGen/X86/lsr-interesting-step.ll
+++ b/test/CodeGen/X86/lsr-interesting-step.ll
@@ -3,26 +3,24 @@
; The inner loop should require only one add (and no leas either).
; rdar://8100380
-; CHECK: BB0_3:
-; CHECK-NEXT: movb $0, flags(%rdx)
-; CHECK-NEXT: addq %rax, %rdx
-; CHECK-NEXT: cmpq $8192, %rdx
+; CHECK: BB0_2:
+; CHECK-NEXT: movb $0, flags(%rcx)
+; CHECK-NEXT: addq %rax, %rcx
+; CHECK-NEXT: cmpq $8192, %rcx
; CHECK-NEXT: jl
@flags = external global [8192 x i8], align 16 ; <[8192 x i8]*> [#uses=1]
define void @foo() nounwind {
entry:
- %tmp = icmp slt i64 2, 8192 ; <i1> [#uses=1]
- br i1 %tmp, label %bb, label %bb21
+ br label %bb
bb: ; preds = %entry
br label %bb7
bb7: ; preds = %bb, %bb17
%tmp8 = phi i64 [ %tmp18, %bb17 ], [ 2, %bb ] ; <i64> [#uses=2]
- %tmp9 = icmp slt i64 2, 8192 ; <i1> [#uses=1]
- br i1 %tmp9, label %bb10, label %bb17
+ br label %bb10
bb10: ; preds = %bb7
br label %bb11