@@ -9,9 +9,9 @@ target triple = "x86_64-apple-macosx10.14.0"
99; The cold region is too small to split.
1010; CHECK-LABEL: @foo
1111; CHECK-NOT: foo.cold.1
12- define void @foo () {
12+ define void @foo (i1 %arg ) {
1313entry:
14- br i1 undef , label %if.then , label %if.end
14+ br i1 %arg , label %if.then , label %if.end
1515
1616if.then: ; preds = %entry
1717 unreachable
@@ -23,9 +23,9 @@ if.end: ; preds = %entry
2323; The cold region is still too small to split.
2424; CHECK-LABEL: @bar
2525; CHECK-NOT: bar.cold.1
26- define void @bar () {
26+ define void @bar (i1 %arg ) {
2727entry:
28- br i1 undef , label %if.then , label %if.end
28+ br i1 %arg , label %if.then , label %if.end
2929
3030if.then: ; preds = %entry
3131 call void @sink ()
@@ -38,9 +38,9 @@ if.end: ; preds = %entry
3838; Make sure we don't try to outline the entire function.
3939; CHECK-LABEL: @fun
4040; CHECK-NOT: fun.cold.1
41- define void @fun () {
41+ define void @fun (i1 %arg ) {
4242entry:
43- br i1 undef , label %if.then , label %if.end
43+ br i1 %arg , label %if.then , label %if.end
4444
4545if.then: ; preds = %entry
4646 call void @sink ()
6363; Do not split `noinline` functions.
6464; CHECK-LABEL: @noinline_func
6565; CHECK-NOT: noinline_func.cold.1
66- define void @noinline_func () noinline {
66+ define void @noinline_func (i1 %arg ) noinline {
6767entry:
68- br i1 undef , label %if.then , label %if.end
68+ br i1 %arg , label %if.then , label %if.end
6969
7070if.then: ; preds = %entry
7171 call void @sink ()
@@ -78,9 +78,9 @@ if.end: ; preds = %entry
7878; Do not split `alwaysinline` functions.
7979; CHECK-LABEL: @alwaysinline_func
8080; CHECK-NOT: alwaysinline_func.cold.1
81- define void @alwaysinline_func () alwaysinline {
81+ define void @alwaysinline_func (i1 %arg ) alwaysinline {
8282entry:
83- br i1 undef , label %if.then , label %if.end
83+ br i1 %arg , label %if.then , label %if.end
8484
8585if.then: ; preds = %entry
8686 call void @sink ()
@@ -105,10 +105,10 @@ loop:
105105; Don't count debug intrinsics towards the outlining threshold.
106106; CHECK-LABEL: @dont_count_debug_intrinsics
107107; CHECK-NOT: dont_count_debug_intrinsics.cold.1
108- define void @dont_count_debug_intrinsics (i32 %arg1 ) !dbg !6 {
108+ define void @dont_count_debug_intrinsics (i32 %arg1 , i1 %arg ) !dbg !6 {
109109entry:
110110 %var = add i32 0 , 0 , !dbg !11
111- br i1 undef , label %if.then , label %if.end
111+ br i1 %arg , label %if.then , label %if.end
112112
113113if.then: ; preds = %entry
114114 ret void
@@ -122,9 +122,9 @@ if.end: ; preds = %entry
122122
123123; CHECK-LABEL: @sanitize_address
124124; CHECK-NOT: sanitize_address.cold.1
125- define void @sanitize_address () sanitize_address {
125+ define void @sanitize_address (i1 %arg ) sanitize_address {
126126entry:
127- br i1 undef , label %if.then , label %if.end
127+ br i1 %arg , label %if.then , label %if.end
128128
129129if.then: ; preds = %entry
130130 call void @sink ()
@@ -136,9 +136,9 @@ if.end: ; preds = %entry
136136
137137; CHECK-LABEL: @sanitize_hwaddress
138138; CHECK-NOT: sanitize_hwaddress.cold.1
139- define void @sanitize_hwaddress () sanitize_hwaddress {
139+ define void @sanitize_hwaddress (i1 %arg ) sanitize_hwaddress {
140140entry:
141- br i1 undef , label %if.then , label %if.end
141+ br i1 %arg , label %if.then , label %if.end
142142
143143if.then: ; preds = %entry
144144 call void @sink ()
@@ -150,9 +150,9 @@ if.end: ; preds = %entry
150150
151151; CHECK-LABEL: @sanitize_thread
152152; CHECK-NOT: sanitize_thread.cold.1
153- define void @sanitize_thread () sanitize_thread {
153+ define void @sanitize_thread (i1 %arg ) sanitize_thread {
154154entry:
155- br i1 undef , label %if.then , label %if.end
155+ br i1 %arg , label %if.then , label %if.end
156156
157157if.then: ; preds = %entry
158158 call void @sink ()
@@ -164,9 +164,9 @@ if.end: ; preds = %entry
164164
165165; CHECK-LABEL: @sanitize_memory
166166; CHECK-NOT: sanitize_memory.cold.1
167- define void @sanitize_memory () sanitize_memory {
167+ define void @sanitize_memory (i1 %arg ) sanitize_memory {
168168entry:
169- br i1 undef , label %if.then , label %if.end
169+ br i1 %arg , label %if.then , label %if.end
170170
171171if.then: ; preds = %entry
172172 call void @sink ()
@@ -180,9 +180,9 @@ declare void @llvm.trap() cold noreturn
180180
181181; CHECK-LABEL: @nosanitize_call
182182; CHECK-NOT: nosanitize_call.cold.1
183- define void @nosanitize_call () sanitize_memory {
183+ define void @nosanitize_call (i1 %arg ) sanitize_memory {
184184entry:
185- br i1 undef , label %if.then , label %if.end
185+ br i1 %arg , label %if.then , label %if.end
186186
187187if.then: ; preds = %entry
188188 call void @llvm.trap (), !nosanitize !2
0 commit comments