30 lines · plain
1; RUN: llvm-extract -S -bb foo:bb4 -bb foo:bb7 %s | FileCheck %s2 3; CHECK: @foo.bb44; CHECK: @foo.bb75define i32 @foo(i32 %arg) {6bb:7 %tmp = alloca i32, align 48 %tmp1 = alloca i32, align 49 store i32 %arg, ptr %tmp1, align 410 %tmp2 = load i32, ptr %tmp1, align 411 %tmp3 = icmp sgt i32 %tmp2, 012 br i1 %tmp3, label %bb4, label %bb713 14bb4: ; preds = %bb15 %tmp5 = load i32, ptr %tmp1, align 416 %tmp6 = add nsw i32 %tmp5, 117 store i32 %tmp6, ptr %tmp1, align 418 store i32 %tmp6, ptr %tmp, align 419 br label %bb820 21bb7: ; preds = %bb22 store i32 0, ptr %tmp, align 423 br label %bb824 25bb8: ; preds = %bb7, %bb426 %tmp9 = load i32, ptr %tmp, align 427 ret i32 %tmp928}29 30