Skip to content

Commit 7c79470

Browse files
author
Balaram Makam
committedOct 5, 2017
[ARM/AARCH64] Make test MachineBranchProb.ll more robust and re-enable for ARM/AArch64
Summary: Make test robust enough to not fail due to CFG changes and re-enable for ARM/AArch64. Reviewers: rovka, fhahn Reviewed By: fhahn Subscribers: fhahn, aemerson, rengolin, mcrosier, llvm-commits, kristof.beyls Differential Revision: https://reviews.llvm.org/D38590 llvm-svn: 315002
1 parent f7e14f4 commit 7c79470

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎llvm/test/CodeGen/Generic/MachineBranchProb.ll

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
; RUN: llc < %s -print-machineinstrs=expand-isel-pseudos -o /dev/null 2>&1 | FileCheck %s
22

3-
; ARM & AArch64 run an extra SimplifyCFG which disrupts this test.
4-
; UNSUPPORTED: arm,aarch64
5-
63
; Hexagon runs passes that renumber the basic blocks, causing this test
74
; to fail.
85
; XFAIL: hexagon
96

107
; Bug: PR31899
118
; XFAIL: avr
129

10+
declare void @foo()
11+
1312
; Make sure we have the correct weight attached to each successor.
1413
define i32 @test2(i32 %x) nounwind uwtable readnone ssp {
1514
; CHECK-LABEL: Machine code for function test2:
@@ -29,6 +28,8 @@ entry:
2928
; CHECK: Successors according to CFG: BB#1({{[0-9a-fx/= ]+}}36.36%) BB#3({{[0-9a-fx/= ]+}}63.64%)
3029

3130
sw.bb:
31+
; this call will prevent simplifyCFG from optimizing the block away in ARM/AArch64.
32+
tail call void @foo()
3233
br label %return
3334

3435
sw.bb1:

0 commit comments

Comments
 (0)
Please sign in to comment.