1 # RUN: llc -mtriple=x86_64-- -verify-machineinstrs -run-pass block-placement -o - %s | FileCheck %s
2 # Check the conditional jump in bb.1 is changed to unconditional after block placement swaps bb.2 and bb.3.
5 @a = external global i16
6 @b = external global i32
10 declare void @dummy3()
12 ; Function Attrs: nounwind
14 br i1 undef, label %bb1, label %bb3
20 br i1 undef, label %bb2, label %bb2
41 # CHECK-LABEL: name: f2
49 successors: %bb.1(50), %bb.3(50)
51 JCC_1 %bb.1, 2, implicit $eflags
54 successors: %bb.2(100)
56 CALL64pcrel32 @dummy1, csr_64, implicit $rsp, implicit-def $rsp
57 CALL64pcrel32 @dummy1, csr_64, implicit $rsp, implicit-def $rsp
58 CALL64pcrel32 @dummy1, csr_64, implicit $rsp, implicit-def $rsp
59 JCC_1 %bb.2, 5, implicit $eflags
62 successors: %bb.4(100)
64 CALL64pcrel32 @dummy2, csr_64, implicit $rsp, implicit-def $rsp
65 CALL64pcrel32 @dummy2, csr_64, implicit $rsp, implicit-def $rsp
66 CALL64pcrel32 @dummy2, csr_64, implicit $rsp, implicit-def $rsp
70 successors: %bb.2(100)
71 CALL64pcrel32 @dummy3, csr_64, implicit $rsp, implicit-def $rsp
72 CALL64pcrel32 @dummy3, csr_64, implicit $rsp, implicit-def $rsp
73 CALL64pcrel32 @dummy3, csr_64, implicit $rsp, implicit-def $rsp