diff options
author | Taewook Oh <taewook.oh@gmail.com> | 2019-12-02 10:15:22 -0800 |
---|---|---|
committer | Taewook Oh <taewook.oh@gmail.com> | 2019-12-02 10:28:40 -0800 |
commit | 2da205d43eeb402d2c42bdbd2f564e2686b5573d (patch) | |
tree | 81dfdcfa2abac6d5178f6e65b5c374ef3d9c77c6 /llvm/test/CodeGen/PowerPC | |
parent | fe459ce65a993dee5e20648a8e01330a44e879b8 (diff) | |
download | bcm5719-llvm-2da205d43eeb402d2c42bdbd2f564e2686b5573d.tar.gz bcm5719-llvm-2da205d43eeb402d2c42bdbd2f564e2686b5573d.zip |
Reland "b19ec1eb3d0c [BPI] Improve unreachable/ColdCall heurstics to handle loops."
Summary: b19ec1eb3d0c has been reverted because of the test failures
with PowerPC targets. This patch addresses the issues from the previous
commit.
Test Plan: ninja check-all. Confirmed that CodeGen/PowerPC/pr36292.ll
and CodeGen/PowerPC/sms-cpy-1.ll pass
Subscribers: llvm-commits
Diffstat (limited to 'llvm/test/CodeGen/PowerPC')
-rw-r--r-- | llvm/test/CodeGen/PowerPC/pr36292.ll | 5 | ||||
-rw-r--r-- | llvm/test/CodeGen/PowerPC/sms-cpy-1.ll | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/PowerPC/pr36292.ll b/llvm/test/CodeGen/PowerPC/pr36292.ll index 883d26b6690..a859121bb50 100644 --- a/llvm/test/CodeGen/PowerPC/pr36292.ll +++ b/llvm/test/CodeGen/PowerPC/pr36292.ll @@ -15,8 +15,7 @@ define void @test() nounwind comdat { ; CHECK-NEXT: ld 29, 0(3) ; CHECK-NEXT: ld 30, 32(1) ; CHECK-NEXT: cmpld 30, 29 -; CHECK-NEXT: bge- 0, .LBB0_2 -; CHECK-NEXT: .p2align 5 +; CHECK-NEXT: bge 0, .LBB0_2 ; CHECK-NEXT: .LBB0_1: # %bounds.ok ; CHECK-NEXT: # ; CHECK-NEXT: lfsx 2, 0, 3 @@ -26,7 +25,7 @@ define void @test() nounwind comdat { ; CHECK-NEXT: addi 30, 30, 1 ; CHECK-NEXT: stfsx 1, 0, 3 ; CHECK-NEXT: cmpld 30, 29 -; CHECK-NEXT: blt+ 0, .LBB0_1 +; CHECK-NEXT: blt 0, .LBB0_1 ; CHECK-NEXT: .LBB0_2: # %bounds.fail ; CHECK-NEXT: std 30, 32(1) %pos = alloca i64, align 8 diff --git a/llvm/test/CodeGen/PowerPC/sms-cpy-1.ll b/llvm/test/CodeGen/PowerPC/sms-cpy-1.ll index 8fdcd1eac45..7804b0a3f09 100644 --- a/llvm/test/CodeGen/PowerPC/sms-cpy-1.ll +++ b/llvm/test/CodeGen/PowerPC/sms-cpy-1.ll @@ -44,7 +44,6 @@ define void @print_res() nounwind { ; CHECK-NEXT: lbz 5, 0(5) ; CHECK-NEXT: addi 3, 3, 1 ; CHECK-NEXT: bdz .LBB0_4 -; CHECK-NEXT: .p2align 4 ; CHECK-NEXT: .LBB0_3: # ; CHECK-NEXT: clrldi 10, 8, 32 ; CHECK-NEXT: cntlzw 9, 6 |