1; Stop after bbsections-prepare and check MIR output for section type. 2; RUN: echo '!_Z3foob' > %t 3; RUN: echo '!!1' >> %t 4; RUN: echo '!!2' >> %t 5; RUN: llc < %s -O0 -mtriple=x86_64-pc-linux -function-sections -basic-block-sections=%t -stop-after=bbsections-prepare | FileCheck %s -check-prefix=CHECK 6 7@_ZTIb = external constant ptr 8define dso_local i32 @_Z3foob(i1 zeroext %0) { 9 %2 = alloca i32, align 4 10 %3 = alloca i8, align 1 11 %4 = zext i1 %0 to i8 12 store i8 %4, ptr %3, align 1 13 %5 = load i8, ptr %3, align 1 14 %6 = trunc i8 %5 to i1 15 br i1 %6, label %7, label %8 16 177: ; preds = %1 18 store i32 1, ptr %2, align 4 19 br label %9 20 218: ; preds = %1 22 store i32 0, ptr %2, align 4 23 br label %9 24 259: ; preds = %8, %7 26 %10 = load i32, ptr %2, align 4 27 ret i32 %10 28} 29 30; CHECK: bb.0 (%ir-block.1, bbsections Cold): 31; CHECK: bb.3 (%ir-block.9, bbsections Cold): 32; CHECK: bb.1 (%ir-block.7) 33; CHECK: bb.2 (%ir-block.8, bbsections 1): 34