From 298232bfeda1372dea113f6af300d986bbc8ed4d Mon Sep 17 00:00:00 2001 From: Haicheng Wu Date: Tue, 16 Aug 2016 20:06:25 +0000 Subject: [PATCH] [BranchFolding] Change a test case of r278575. Rename the operands to make the test less brittle. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278841 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/tail-merge-after-mbp.ll | 108 ++++++++++++----------- 1 file changed, 55 insertions(+), 53 deletions(-) diff --git a/test/CodeGen/X86/tail-merge-after-mbp.ll b/test/CodeGen/X86/tail-merge-after-mbp.ll index 7a8d2e8000e..dc5f3a12bd9 100644 --- a/test/CodeGen/X86/tail-merge-after-mbp.ll +++ b/test/CodeGen/X86/tail-merge-after-mbp.ll @@ -9,84 +9,86 @@ declare i32 @Up(...) declare i32 @f(i32, i32) -; check loop block BB#10 is not merged with LBB0_12 -; check loop block LBB0_9 is not merged with BB#11, BB#13 +; check loop block_14 is not merged with block_21 +; check loop block_11 is not merged with block_18, block_25 define i32 @foo(%0* nocapture readonly, i32, i1 %c, i8* %p1, %2** %p2) { ; CHECK-LABEL: foo: -; CHECK: LBB0_9: +; CHECK: # %block_11 ; CHECK-NEXT: movq (%r14), %rax ; CHECK-NEXT: testq %rax, %rax ; CHECK-NEXT: je -; CHECK-NEXT:# BB#10: +; CHECK-NEXT:# %block_14 ; CHECK-NEXT: cmpq $0, 8(%rax) ; CHECK-NEXT: jne -; CHECK-NEXT:# BB#11: +; CHECK-NEXT:# %block_18 ; CHECK-NEXT: movq (%r14), %rax ; CHECK-NEXT: testq %rax, %rax ; CHECK-NEXT: je -; CHECK-NEXT:LBB0_12: +; CHECK-NEXT:# %block_21 +; CHECK-NEXT:# =>This Inner Loop Header ; CHECK-NEXT: cmpq $0, 8(%rax) ; CHECK-NEXT: jne -; CHECK-NEXT:# BB#13: +; CHECK-NEXT:# %block_25 +; CHECK-NEXT:# in Loop ; CHECK-NEXT: movq (%r14), %rax ; CHECK-NEXT: testq %rax, %rax ; CHECK-NEXT: jne - br i1 %c, label %34, label %3 + br i1 %c, label %block_34, label %block_3 -;