1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --include-generated-funcs
2 ; RUN: opt -S -passes=verify,iroutliner -ir-outlining-no-cost < %s | FileCheck %s
4 ; Make sure that we outline from all three of these functions, and that
5 ; the first instruction in the module is included when it is the only
6 ; instruction in the first basic block.
36 ; CHECK-NEXT: call void @outlined_ir_func_0()
37 ; CHECK-NEXT: br label [[BB2:%.*]]
39 ; CHECK-NEXT: ret void
44 ; CHECK-NEXT: call void @outlined_ir_func_0()
45 ; CHECK-NEXT: br label [[BB2:%.*]]
47 ; CHECK-NEXT: ret void
52 ; CHECK-NEXT: call void @outlined_ir_func_0()
53 ; CHECK-NEXT: br label [[BB2:%.*]]
55 ; CHECK-NEXT: ret void
58 ; CHECK-LABEL: define internal void @outlined_ir_func_0(
59 ; CHECK-NEXT: newFuncRoot:
60 ; CHECK-NEXT: br label [[BB_TO_OUTLINE:%.*]]
61 ; CHECK: bb_to_outline:
62 ; CHECK-NEXT: br label [[BB1:%.*]]
64 ; CHECK-NEXT: br label [[BB2_EXITSTUB:%.*]]
65 ; CHECK: bb2.exitStub:
66 ; CHECK-NEXT: ret void