mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
a6ad823675
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133026 91177308-0d34-0410-b5e6-96231b3b80d8
45 lines
669 B
LLVM
45 lines
669 B
LLVM
; RUN: llc -mtriple=x86_64-pc-linux-gnu -tail-merge-threshold 2 < %s | FileCheck %s
|
|
|
|
; Test that we still do some merging if a block has more than
|
|
; tail-merge-threshold predecessors.
|
|
|
|
; CHECK: callq bar
|
|
; CHECK: callq bar
|
|
; CHECK: callq bar
|
|
; CHECK-NOT: callq
|
|
|
|
declare void @bar()
|
|
|
|
define void @foo(i32 %xxx) {
|
|
entry:
|
|
switch i32 %xxx, label %bb4 [
|
|
i32 0, label %bb0
|
|
i32 1, label %bb1
|
|
i32 2, label %bb2
|
|
i32 3, label %bb3
|
|
]
|
|
|
|
bb0:
|
|
call void @bar()
|
|
br label %bb5
|
|
|
|
bb1:
|
|
call void @bar()
|
|
br label %bb5
|
|
|
|
bb2:
|
|
call void @bar()
|
|
br label %bb5
|
|
|
|
bb3:
|
|
call void @bar()
|
|
br label %bb5
|
|
|
|
bb4:
|
|
call void @bar()
|
|
br label %bb5
|
|
|
|
bb5:
|
|
ret void
|
|
}
|