From d9cbb1608f5e59c45c7ac6fa5fe7ca88e131f803 Mon Sep 17 00:00:00 2001 From: Haicheng Wu Date: Fri, 12 Aug 2016 08:40:24 +0000 Subject: Revert "[BranchFolding] Restrict tail merging loop blocks after MBP" This reverts commit r278463 because it hits the bot. llvm-svn: 278484 --- llvm/test/CodeGen/ARM/arm-and-tst-peephole.ll | 2 +- llvm/test/CodeGen/X86/tail-merge-after-mbp.ll | 92 --------------------------- 2 files changed, 1 insertion(+), 93 deletions(-) delete mode 100644 llvm/test/CodeGen/X86/tail-merge-after-mbp.ll (limited to 'llvm/test/CodeGen') diff --git a/llvm/test/CodeGen/ARM/arm-and-tst-peephole.ll b/llvm/test/CodeGen/ARM/arm-and-tst-peephole.ll index 04eae8f9afe..151cc1b12ed 100644 --- a/llvm/test/CodeGen/ARM/arm-and-tst-peephole.ll +++ b/llvm/test/CodeGen/ARM/arm-and-tst-peephole.ll @@ -49,7 +49,7 @@ tailrecurse.switch: ; preds = %tailrecurse ; V8-NEXT: beq ; V8-NEXT: %tailrecurse.switch ; V8: cmp -; V8-NEXT: bne +; V8-NEXT: beq ; V8-NEXT: b ; The trailing space in the last line checks that the branch is unconditional switch i32 %and, label %sw.epilog [ diff --git a/llvm/test/CodeGen/X86/tail-merge-after-mbp.ll b/llvm/test/CodeGen/X86/tail-merge-after-mbp.ll deleted file mode 100644 index 4accd0be935..00000000000 --- a/llvm/test/CodeGen/X86/tail-merge-after-mbp.ll +++ /dev/null @@ -1,92 +0,0 @@ -; RUN: llc -o - %s | FileCheck %s - -%0 = type { %1, %3* } -%1 = type { %2* } -%2 = type { %2*, i8* } -%3 = type { i32, i32 (i32, i32)* } - - -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 -define i32 @foo(%0* nocapture readonly, i32, i1 %c, i8* %p1, %2** %p2) { -; CHECK-LABEL: foo: -; CHECK: LBB0_9: -; CHECK-NEXT: movq (%r14), %rax -; CHECK-NEXT: testq %rax, %rax -; CHECK-NEXT: je -; CHECK-NEXT:# BB#10: -; CHECK-NEXT: cmpq $0, 8(%rax) -; CHECK-NEXT: jne -; CHECK-NEXT:# BB#11: -; CHECK-NEXT: movq (%r14), %rax -; CHECK-NEXT: testq %rax, %rax -; CHECK-NEXT: je -; CHECK-NEXT:LBB0_12: -; CHECK-NEXT: cmpq $0, 8(%rax) -; CHECK-NEXT: jne -; CHECK-NEXT:# BB#13: -; CHECK-NEXT: movq (%r14), %rax -; CHECK-NEXT: testq %rax, %rax -; CHECK-NEXT: jne - br i1 %c, label %34, label %3 - -;