1; RUN: llc < %s 2>&1 -print-after=machine-scheduler -mtriple=x86_64-unknown-unknown | FileCheck %s
2
3; expected MBB dump output
4; # *** IR Dump After Machine Instruction Scheduler ***:
5; # Machine code for function foo: NoPHIs, TracksLiveness
6;
7; 0B	bb.0 (%ir-block.0):
8; 	  successors: %bb.1(0x80000000); %bb.1(100.00%)
9;
10; 16B	bb.1.next:
11; 	; predecessors: %bb.0
12
13; previously, it was broken as
14; 	  successors: %bb.1(0x80000000); %bb.1(200.00%)
15
16define void @foo(){
17; CHECK: IR Dump After Machine Instruction Scheduler
18; CHECK: bb.0
19; CHECK: 100.0
20; CHECK: bb.1
21  br label %next
22
23next:
24  ret void
25}
26