40 lines · plain
1;; Check that specifying the function in the basic block sections profile2;; without any other directives is a noop.3;;4;; Specify the bb sections profile:5; RUN: echo 'v1' > %t6; RUN: echo 'f _Z3foob' >> %t7;;8; RUN: llc < %s -mtriple=x86_64-pc-linux -function-sections -basic-block-sections=%t > %t.bbsections9; RUN: llc < %s -mtriple=x86_64-pc-linux -function-sections > %t.orig10; RUN: diff -u %t.orig %t.bbsections11 12define i32 @_Z3foob(i1 zeroext %0) nounwind {13 %2 = alloca i32, align 414 %3 = alloca i8, align 115 %4 = zext i1 %0 to i816 store i8 %4, ptr %3, align 117 %5 = load i8, ptr %3, align 118 %6 = trunc i8 %5 to i119 %7 = zext i1 %6 to i3220 %8 = icmp sgt i32 %7, 021 br i1 %8, label %9, label %1122 239: ; preds = %124 %10 = call i32 @_Z3barv()25 store i32 %10, ptr %2, align 426 br label %1327 2811: ; preds = %129 %12 = call i32 @_Z3bazv()30 store i32 %12, ptr %2, align 431 br label %1332 3313: ; preds = %11, %934 %14 = load i32, ptr %2, align 435 ret i32 %1436}37 38declare i32 @_Z3barv() #139declare i32 @_Z3bazv() #140