1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --include-generated-funcs
2 ; RUN: opt -S -verify -iroutliner -ir-outlining-no-cost < %s | FileCheck %s
4 ; This checks that we are able to outline exactly the same structure without
5 ; any other items to outline.
7 define void @outline_outputs1() #0 {
15 %a = alloca i32, align 4
22 %b = alloca i32, align 4
26 ; CHECK-LABEL: @outline_outputs1(
28 ; CHECK-NEXT: call void @outlined_ir_func_0()
29 ; CHECK-NEXT: br label [[NEXT3:%.*]]
31 ; CHECK-NEXT: [[A:%.*]] = alloca i32, align 4
32 ; CHECK-NEXT: call void @outlined_ir_func_0()
33 ; CHECK-NEXT: br label [[NEXT6:%.*]]
35 ; CHECK-NEXT: [[B:%.*]] = alloca i32, align 4
36 ; CHECK-NEXT: ret void
39 ; CHECK: define internal void @outlined_ir_func_0(
40 ; CHECK-NEXT: newFuncRoot:
41 ; CHECK-NEXT: br label [[ENTRY_TO_OUTLINE:%.*]]
42 ; CHECK: entry_to_outline:
43 ; CHECK-NEXT: br label [[NEXT:%.*]]
45 ; CHECK-NEXT: br label [[NEXT2:%.*]]
47 ; CHECK-NEXT: br label [[NEXT3_EXITSTUB:%.*]]
48 ; CHECK: next3.exitStub:
49 ; CHECK-NEXT: ret void