1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=x86_64-pc-linux-gnu -tail-merge-threshold 2 < %s | FileCheck %s
4 ; Test that we still do some merging if a block has more than
5 ; tail-merge-threshold predecessors.
9 define void @foo(i32 %xxx) nounwind {
12 ; CHECK-NEXT: pushq %rax
13 ; CHECK-NEXT: cmpl $3, %edi
14 ; CHECK-NEXT: ja .LBB0_4
15 ; CHECK-NEXT: # %bb.1:
16 ; CHECK-NEXT: movl %edi, %eax
17 ; CHECK-NEXT: jmpq *.LJTI0_0(,%rax,8)
18 ; CHECK-NEXT: .LBB0_3: # %bb3
19 ; CHECK-NEXT: callq bar@PLT
20 ; CHECK-NEXT: popq %rax
22 ; CHECK-NEXT: .LBB0_4: # %bb4
23 ; CHECK-NEXT: callq bar@PLT
24 ; CHECK-NEXT: popq %rax
26 switch i32 %xxx, label %bb4 [