Skip to content

Commit bc8e67a

Browse files
simplify test
1 parent 97ba032 commit bc8e67a

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

llvm/test/CodeGen/X86/global-variable-partition-dap.ll

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -141,36 +141,6 @@ define void @hot_func(i32 %0) !prof !14 {
141141
ret void
142142
}
143143

144-
define i32 @main(i32 %0, ptr %1) !prof !15 {
145-
br label %11
146-
147-
5: ; preds = %11
148-
%6 = call i32 @rand()
149-
store i32 %6, ptr @cold_bss
150-
store i32 %6, ptr @cold_data
151-
store i32 %6, ptr @bss2
152-
store i32 %6, ptr @data3
153-
call void @cold_func(i32 %6)
154-
ret i32 0
155-
156-
11: ; preds = %11, %2
157-
%12 = phi i32 [ 0, %2 ], [ %19, %11 ]
158-
%13 = call i32 @rand()
159-
%14 = srem i32 %13, 2
160-
%15 = sext i32 %14 to i64
161-
%16 = getelementptr inbounds [2 x ptr], ptr @hot_relro_array, i64 0, i64 %15
162-
%17 = load ptr, ptr %16
163-
store i32 %13, ptr %17
164-
store i32 %13, ptr @external_hot_data
165-
%18 = add i32 %13, 1
166-
store i32 %18, ptr @hot_bss
167-
call void @hot_func(i32 %12)
168-
%19 = add i32 %12, 1
169-
%20 = icmp eq i32 %19, 100000
170-
br i1 %20, label %5, label %11, !prof !16
171-
}
172-
173-
declare i32 @rand()
174144
declare i32 @func_taking_arbitrary_param(...)
175145

176146
attributes #0 = {"data-section"="bar"}

0 commit comments

Comments
 (0)