1 # RUN: llc -run-pass=livedebugvalues -march=x86-64 -o - %s | FileCheck -check-prefix=GENERATE %s
2 # RUN: llc -run-pass=livedebugvalues -march=x86-64 -o - %s | FileCheck -check-prefix=TERMINATE %s
4 # Check that spills are recognized in the Live Debug Values pass and that
5 # DBG_VALUE instructions are generated to keep track of spilled user
7 # In addition we check that the ranges of spilled debug values are properly
10 # Test case generated from:
12 # extern void use (int);
13 # extern void set (int *, int *, int *);
15 # int glob0, glob1, glob2, glob3, glob4, glob5;
17 # void foo(int b0, int b1, int int0, int int1, int int2,
31 # int0 += (int1 + int2 + int3) * int4;
36 # set(&inte, &intf, &intg);
37 # int0 = (int1 + int2 + int3) * int4;
38 # inta = (intb*inte + intc*inte + intd) * inte;
40 # int0 += int4 * inta;
46 # clang -g -O2 -S -emit-llvm -fno-omit-frame-pointer spill1.c
47 # llc -stop-after=funclet-layout < spill1.ll > spill1.mir
49 # Make sure that we generated DBG_VALUE instructions for the spills
50 # GENERATE: ![[INT0:[0-9]+]] = !DILocalVariable(name: "int0",{{.*}})
51 # GENERATE: ![[INTB:[0-9]+]] = !DILocalVariable(name: "intb",{{.*}})
52 # GENERATE: ![[INTD:[0-9]+]] = !DILocalVariable(name: "intd",{{.*}})
54 # GENERATE: bb.1.if.end:
55 # GENERATE: MOV32mr $rbp, 1, $noreg, -48, $noreg, killed $edx :: (store 4 into %stack.5)
56 # GENERATE-NEXT: DBG_VALUE $rbp, 0, ![[INT0]], !DIExpression(DW_OP_constu, 48, DW_OP_minus)
57 # GENERATE: MOV32mr $rbp, 1, $noreg, -52, $noreg, killed $r8d :: (store 4 into %stack.4)
58 # GENERATE-NEXT: DBG_VALUE $rbp, 0, ![[INTB]], !DIExpression(DW_OP_constu, 52, DW_OP_minus)
59 # GENERATE: MOV32mr $rbp, 1, $noreg, -56, $noreg, killed $esi :: (store 4 into %stack.3)
60 # GENERATE-NEXT: DBG_VALUE $rbp, 0, ![[INTD]], !DIExpression(DW_OP_constu, 56, DW_OP_minus)
62 # Check that the spill locations that are valid at the end of bb.1.if.end are
63 # propagated to subsequent BBs.
65 # GENERATE: bb.2.if.then4:
67 # GENERATE-DAG: DBG_VALUE $rbp, 0, ![[INTD]], !DIExpression(DW_OP_constu, 56, DW_OP_minus)
68 # GENERATE-DAG: DBG_VALUE $rbp, 0, ![[INTB]], !DIExpression(DW_OP_constu, 52, DW_OP_minus)
71 # GENERATE-NOT: bb.4.if.end13:
72 # GENERATE-DAG: DBG_VALUE $rbp, 0, ![[INTD]], !DIExpression(DW_OP_constu, 56, DW_OP_minus)
73 # GENERATE-DAG: DBG_VALUE $rbp, 0, ![[INTB]], !DIExpression(DW_OP_constu, 52, DW_OP_minus)
75 # GENERATE: bb.4.if.end13:
76 # GENERATE-NOT: bb.5.cleanup:
77 # GENERATE-DAG: DBG_VALUE $rbp, 0, ![[INTD]], !DIExpression(DW_OP_constu, 56, DW_OP_minus)
78 # GENERATE-DAG: DBG_VALUE $rbp, 0, ![[INTB]], !DIExpression(DW_OP_constu, 52, DW_OP_minus)
80 # Check that the spill location rbp-48 (the variable int0) is not propagated
81 # because int0 is redefined within the same basic block.
83 # TERMINATE: bb.2.if.then4:
84 # TERMINATE-NOT: DBG_VALUE $rbp, -48,
86 ; ModuleID = '<stdin>'
87 source_filename = "spill1.c"
88 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
89 target triple = "x86_64-unknown-linux-gnu"
91 @glob0 = common local_unnamed_addr global i32 0, align 4, !dbg !0
92 @glob1 = common local_unnamed_addr global i32 0, align 4, !dbg !6
93 @glob2 = common local_unnamed_addr global i32 0, align 4, !dbg !9
94 @glob3 = common local_unnamed_addr global i32 0, align 4, !dbg !11
95 @glob4 = common local_unnamed_addr global i32 0, align 4, !dbg !13
96 @glob5 = common local_unnamed_addr global i32 0, align 4, !dbg !15
98 ; Function Attrs: nounwind uwtable
99 define void @foo(i32 %b0, i32 %b1, i32 %int0, i32 %int1, i32 %int2, i32 %int3, i32 %int4) local_unnamed_addr #0 !dbg !20 {
101 %inte = alloca i32, align 4
102 %intf = alloca i32, align 4
103 %intg = alloca i32, align 4
104 tail call void @llvm.dbg.value(metadata i32 %b0, i64 0, metadata !24, metadata !38), !dbg !39
105 tail call void @llvm.dbg.value(metadata i32 %b1, i64 0, metadata !25, metadata !38), !dbg !40
106 tail call void @llvm.dbg.value(metadata i32 %int0, i64 0, metadata !26, metadata !38), !dbg !41
107 tail call void @llvm.dbg.value(metadata i32 %int1, i64 0, metadata !27, metadata !38), !dbg !42
108 tail call void @llvm.dbg.value(metadata i32 %int2, i64 0, metadata !28, metadata !38), !dbg !43
109 tail call void @llvm.dbg.value(metadata i32 %int3, i64 0, metadata !29, metadata !38), !dbg !44
110 tail call void @llvm.dbg.value(metadata i32 %int4, i64 0, metadata !30, metadata !38), !dbg !45
111 %0 = load i32, i32* @glob0, align 4, !dbg !46, !tbaa !47
112 tail call void @llvm.dbg.value(metadata i32 %0, i64 0, metadata !31, metadata !38), !dbg !51
113 %1 = load i32, i32* @glob1, align 4, !dbg !52, !tbaa !47
114 tail call void @llvm.dbg.value(metadata i32 %1, i64 0, metadata !32, metadata !38), !dbg !53
115 %2 = load i32, i32* @glob2, align 4, !dbg !54, !tbaa !47
116 tail call void @llvm.dbg.value(metadata i32 %2, i64 0, metadata !33, metadata !38), !dbg !55
117 %3 = load i32, i32* @glob3, align 4, !dbg !56, !tbaa !47
118 tail call void @llvm.dbg.value(metadata i32 %3, i64 0, metadata !34, metadata !38), !dbg !57
119 %4 = bitcast i32* %inte to i8*, !dbg !58
120 call void @llvm.lifetime.start(i64 4, i8* nonnull %4) #4, !dbg !58
121 %5 = load i32, i32* @glob4, align 4, !dbg !59, !tbaa !47
122 tail call void @llvm.dbg.value(metadata i32 %5, i64 0, metadata !35, metadata !38), !dbg !60
123 tail call void @llvm.dbg.value(metadata i32 %5, i64 0, metadata !35, metadata !38), !dbg !60
124 store i32 %5, i32* %inte, align 4, !dbg !60, !tbaa !47
125 %6 = bitcast i32* %intf to i8*, !dbg !61
126 call void @llvm.lifetime.start(i64 4, i8* nonnull %6) #4, !dbg !61
127 %7 = load i32, i32* @glob5, align 4, !dbg !62, !tbaa !47
128 tail call void @llvm.dbg.value(metadata i32 %7, i64 0, metadata !36, metadata !38), !dbg !63
129 tail call void @llvm.dbg.value(metadata i32 %7, i64 0, metadata !36, metadata !38), !dbg !63
130 store i32 %7, i32* %intf, align 4, !dbg !63, !tbaa !47
131 %8 = bitcast i32* %intg to i8*, !dbg !64
132 call void @llvm.lifetime.start(i64 4, i8* nonnull %8) #4, !dbg !64
133 %tobool = icmp eq i32 %b0, 0, !dbg !65
134 br i1 %tobool, label %if.end, label %cleanup, !dbg !67
136 if.end: ; preds = %entry
137 %add = add nsw i32 %int2, %int1, !dbg !68
138 %add1 = add nsw i32 %add, %int3, !dbg !69
139 %mul = mul nsw i32 %add1, %int4, !dbg !70
140 call void @llvm.dbg.value(metadata i32 %mul, i64 0, metadata !26, metadata !38), !dbg !41
141 %add2 = add nsw i32 %mul, %int0, !dbg !71
142 tail call void @llvm.dbg.value(metadata i32 %add2, i64 0, metadata !26, metadata !38), !dbg !41
143 tail call void @use(i32 %7) #4, !dbg !72
144 tail call void @use(i32 %5) #4, !dbg !73
145 %tobool3 = icmp eq i32 %b1, 0, !dbg !74
146 br i1 %tobool3, label %if.end13, label %if.then4, !dbg !76
148 if.then4: ; preds = %if.end
149 tail call void @llvm.dbg.value(metadata i32* %inte, i64 0, metadata !35, metadata !77), !dbg !60
150 tail call void @llvm.dbg.value(metadata i32* %intf, i64 0, metadata !36, metadata !77), !dbg !63
151 tail call void @llvm.dbg.value(metadata i32* %intg, i64 0, metadata !37, metadata !77), !dbg !78
152 call void @set(i32* nonnull %inte, i32* nonnull %intf, i32* nonnull %intg) #4, !dbg !79
153 %9 = load i32, i32* %inte, align 4, !dbg !81, !tbaa !47
154 call void @llvm.dbg.value(metadata i32 %9, i64 0, metadata !35, metadata !38), !dbg !60
155 %mul833 = add i32 %2, %1, !dbg !82
156 %add10 = mul i32 %9, %mul833, !dbg !82
157 %add11 = add nsw i32 %add10, %3, !dbg !83
158 %mul12 = mul nsw i32 %add11, %9, !dbg !84
159 call void @llvm.dbg.value(metadata i32 %mul12, i64 0, metadata !31, metadata !38), !dbg !51
160 br label %if.end13, !dbg !85
162 if.end13: ; preds = %if.then4, %if.end
163 %inta.0 = phi i32 [ %mul12, %if.then4 ], [ %0, %if.end ]
164 %int0.addr.0 = phi i32 [ %mul, %if.then4 ], [ %add2, %if.end ]
165 call void @llvm.dbg.value(metadata i32 %inta.0, i64 0, metadata !31, metadata !38), !dbg !51
166 call void @llvm.dbg.value(metadata i32 %int0.addr.0, i64 0, metadata !26, metadata !38), !dbg !41
167 %mul14 = mul nsw i32 %inta.0, %int4, !dbg !86
168 %add15 = add nsw i32 %int0.addr.0, %mul14, !dbg !87
169 call void @llvm.dbg.value(metadata i32 %add15, i64 0, metadata !26, metadata !38), !dbg !41
170 call void @use(i32 %add15) #4, !dbg !88
171 br label %cleanup, !dbg !89
173 cleanup: ; preds = %if.end13, %entry
174 %10 = bitcast i32* %intg to i8*
175 %11 = bitcast i32* %intf to i8*
176 %12 = bitcast i32* %inte to i8*
177 call void @llvm.lifetime.end(i64 4, i8* nonnull %10) #4, !dbg !89
178 call void @llvm.lifetime.end(i64 4, i8* nonnull %11) #4, !dbg !89
179 call void @llvm.lifetime.end(i64 4, i8* nonnull %12) #4, !dbg !89
183 ; Function Attrs: argmemonly nounwind
184 declare void @llvm.lifetime.start(i64, i8* nocapture) #1
186 declare void @use(i32) local_unnamed_addr #2
188 declare void @set(i32*, i32*, i32*) local_unnamed_addr #2
190 ; Function Attrs: argmemonly nounwind
191 declare void @llvm.lifetime.end(i64, i8* nocapture) #1
193 ; Function Attrs: nounwind readnone
194 declare void @llvm.dbg.value(metadata, i64, metadata, metadata) #3
196 ; Function Attrs: nounwind
197 declare void @llvm.stackprotector(i8*, i8**) #4
199 attributes #0 = { nounwind uwtable "no-frame-pointer-elim-non-leaf" }
200 attributes #1 = { argmemonly nounwind }
201 attributes #2 = { "no-frame-pointer-elim-non-leaf" }
202 attributes #3 = { nounwind readnone }
203 attributes #4 = { nounwind }
206 !llvm.module.flags = !{!17, !18}
209 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
210 !1 = distinct !DIGlobalVariable(name: "glob0", scope: !2, file: !3, line: 4, type: !8, isLocal: false, isDefinition: true)
211 !2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 5.0.0 (trunk 292962)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5)
212 !3 = !DIFile(filename: "spill1.c", directory: "/home/test")
214 !5 = !{!0, !6, !9, !11, !13, !15}
215 !6 = !DIGlobalVariableExpression(var: !7, expr: !DIExpression())
216 !7 = distinct !DIGlobalVariable(name: "glob1", scope: !2, file: !3, line: 4, type: !8, isLocal: false, isDefinition: true)
217 !8 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
218 !9 = !DIGlobalVariableExpression(var: !10, expr: !DIExpression())
219 !10 = distinct !DIGlobalVariable(name: "glob2", scope: !2, file: !3, line: 4, type: !8, isLocal: false, isDefinition: true)
220 !11 = !DIGlobalVariableExpression(var: !12, expr: !DIExpression())
221 !12 = distinct !DIGlobalVariable(name: "glob3", scope: !2, file: !3, line: 4, type: !8, isLocal: false, isDefinition: true)
222 !13 = !DIGlobalVariableExpression(var: !14, expr: !DIExpression())
223 !14 = distinct !DIGlobalVariable(name: "glob4", scope: !2, file: !3, line: 4, type: !8, isLocal: false, isDefinition: true)
224 !15 = !DIGlobalVariableExpression(var: !16, expr: !DIExpression())
225 !16 = distinct !DIGlobalVariable(name: "glob5", scope: !2, file: !3, line: 4, type: !8, isLocal: false, isDefinition: true)
226 !17 = !{i32 2, !"Dwarf Version", i32 4}
227 !18 = !{i32 2, !"Debug Info Version", i32 3}
228 !19 = !{!"clang version 5.0.0 (trunk 292962)"}
229 !20 = distinct !DISubprogram(name: "foo", scope: !3, file: !3, line: 6, type: !21, isLocal: false, isDefinition: true, scopeLine: 8, flags: DIFlagPrototyped, isOptimized: true, unit: !2, retainedNodes: !23)
230 !21 = !DISubroutineType(types: !22)
231 !22 = !{null, !8, !8, !8, !8, !8, !8, !8}
232 !23 = !{!24, !25, !26, !27, !28, !29, !30, !31, !32, !33, !34, !35, !36, !37}
233 !24 = !DILocalVariable(name: "b0", arg: 1, scope: !20, file: !3, line: 6, type: !8)
234 !25 = !DILocalVariable(name: "b1", arg: 2, scope: !20, file: !3, line: 6, type: !8)
235 !26 = !DILocalVariable(name: "int0", arg: 3, scope: !20, file: !3, line: 6, type: !8)
236 !27 = !DILocalVariable(name: "int1", arg: 4, scope: !20, file: !3, line: 6, type: !8)
237 !28 = !DILocalVariable(name: "int2", arg: 5, scope: !20, file: !3, line: 6, type: !8)
238 !29 = !DILocalVariable(name: "int3", arg: 6, scope: !20, file: !3, line: 7, type: !8)
239 !30 = !DILocalVariable(name: "int4", arg: 7, scope: !20, file: !3, line: 7, type: !8)
240 !31 = !DILocalVariable(name: "inta", scope: !20, file: !3, line: 9, type: !8)
241 !32 = !DILocalVariable(name: "intb", scope: !20, file: !3, line: 10, type: !8)
242 !33 = !DILocalVariable(name: "intc", scope: !20, file: !3, line: 11, type: !8)
243 !34 = !DILocalVariable(name: "intd", scope: !20, file: !3, line: 12, type: !8)
244 !35 = !DILocalVariable(name: "inte", scope: !20, file: !3, line: 13, type: !8)
245 !36 = !DILocalVariable(name: "intf", scope: !20, file: !3, line: 14, type: !8)
246 !37 = !DILocalVariable(name: "intg", scope: !20, file: !3, line: 15, type: !8)
247 !38 = !DIExpression()
248 !39 = !DILocation(line: 6, column: 14, scope: !20)
249 !40 = !DILocation(line: 6, column: 22, scope: !20)
250 !41 = !DILocation(line: 6, column: 30, scope: !20)
251 !42 = !DILocation(line: 6, column: 40, scope: !20)
252 !43 = !DILocation(line: 6, column: 50, scope: !20)
253 !44 = !DILocation(line: 7, column: 14, scope: !20)
254 !45 = !DILocation(line: 7, column: 24, scope: !20)
255 !46 = !DILocation(line: 9, column: 14, scope: !20)
256 !47 = !{!48, !48, i64 0}
257 !48 = !{!"int", !49, i64 0}
258 !49 = !{!"omnipotent char", !50, i64 0}
259 !50 = !{!"Simple C/C++ TBAA"}
260 !51 = !DILocation(line: 9, column: 7, scope: !20)
261 !52 = !DILocation(line: 10, column: 14, scope: !20)
262 !53 = !DILocation(line: 10, column: 7, scope: !20)
263 !54 = !DILocation(line: 11, column: 14, scope: !20)
264 !55 = !DILocation(line: 11, column: 7, scope: !20)
265 !56 = !DILocation(line: 12, column: 14, scope: !20)
266 !57 = !DILocation(line: 12, column: 7, scope: !20)
267 !58 = !DILocation(line: 13, column: 3, scope: !20)
268 !59 = !DILocation(line: 13, column: 14, scope: !20)
269 !60 = !DILocation(line: 13, column: 7, scope: !20)
270 !61 = !DILocation(line: 14, column: 3, scope: !20)
271 !62 = !DILocation(line: 14, column: 14, scope: !20)
272 !63 = !DILocation(line: 14, column: 7, scope: !20)
273 !64 = !DILocation(line: 15, column: 3, scope: !20)
274 !65 = !DILocation(line: 17, column: 7, scope: !66)
275 !66 = distinct !DILexicalBlock(scope: !20, file: !3, line: 17, column: 7)
276 !67 = !DILocation(line: 17, column: 7, scope: !20)
277 !68 = !DILocation(line: 20, column: 17, scope: !20)
278 !69 = !DILocation(line: 20, column: 24, scope: !20)
279 !70 = !DILocation(line: 20, column: 32, scope: !20)
280 !71 = !DILocation(line: 20, column: 8, scope: !20)
281 !72 = !DILocation(line: 21, column: 3, scope: !20)
282 !73 = !DILocation(line: 22, column: 3, scope: !20)
283 !74 = !DILocation(line: 24, column: 7, scope: !75)
284 !75 = distinct !DILexicalBlock(scope: !20, file: !3, line: 24, column: 7)
285 !76 = !DILocation(line: 24, column: 7, scope: !20)
286 !77 = !DIExpression(DW_OP_deref)
287 !78 = !DILocation(line: 15, column: 7, scope: !20)
288 !79 = !DILocation(line: 25, column: 5, scope: !80)
289 !80 = distinct !DILexicalBlock(scope: !75, file: !3, line: 24, column: 11)
290 !81 = !DILocation(line: 27, column: 18, scope: !80)
291 !82 = !DILocation(line: 27, column: 23, scope: !80)
292 !83 = !DILocation(line: 27, column: 35, scope: !80)
293 !84 = !DILocation(line: 27, column: 43, scope: !80)
294 !85 = !DILocation(line: 28, column: 3, scope: !80)
295 !86 = !DILocation(line: 29, column: 16, scope: !20)
296 !87 = !DILocation(line: 29, column: 8, scope: !20)
297 !88 = !DILocation(line: 30, column: 3, scope: !20)
298 !89 = !DILocation(line: 31, column: 1, scope: !20)
299 !90 = !DILocation(line: 31, column: 1, scope: !91)
300 !91 = !DILexicalBlockFile(scope: !20, file: !3, discriminator: 2)
306 exposesReturnsTwice: false
308 regBankSelected: false
310 tracksRegLiveness: true
318 calleeSavedRegisters: [ '$bh', '$bl', '$bp', '$bpl', '$bx', '$ebp', '$ebx',
319 '$rbp', '$rbx', '$r12', '$r13', '$r14', '$r15',
320 '$r12b', '$r13b', '$r14b', '$r15b', '$r12d', '$r13d',
321 '$r14d', '$r15d', '$r12w', '$r13w', '$r14w', '$r15w' ]
323 isFrameAddressTaken: false
324 isReturnAddressTaken: false
328 offsetAdjustment: -24
333 hasOpaqueSPAdjustment: false
335 hasMustTailInVarArgFunc: false
337 - { id: 0, type: spill-slot, offset: -56, size: 8, alignment: 8, callee-saved-register: '$rbx' }
338 - { id: 1, type: spill-slot, offset: -48, size: 8, alignment: 16, callee-saved-register: '$r12' }
339 - { id: 2, type: spill-slot, offset: -40, size: 8, alignment: 8, callee-saved-register: '$r13' }
340 - { id: 3, type: spill-slot, offset: -32, size: 8, alignment: 16, callee-saved-register: '$r14' }
341 - { id: 4, type: spill-slot, offset: -24, size: 8, alignment: 8, callee-saved-register: '$r15' }
342 - { id: 5, type: spill-slot, offset: -16, size: 8, alignment: 16 }
343 - { id: 6, offset: 0, size: 4, alignment: 16, isImmutable: true, isAliased: false }
345 - { id: 0, name: inte, offset: -60, size: 4, alignment: 4 }
346 - { id: 1, name: intf, offset: -76, size: 4, alignment: 4 }
347 - { id: 2, name: intg, offset: -80, size: 4, alignment: 4 }
348 - { id: 3, type: spill-slot, offset: -72, size: 4, alignment: 4 }
349 - { id: 4, type: spill-slot, offset: -68, size: 4, alignment: 4 }
350 - { id: 5, type: spill-slot, offset: -64, size: 4, alignment: 4 }
353 successors: %bb.1.if.end(0x30000000), %bb.5.cleanup(0x50000000)
354 liveins: $ecx, $edi, $edx, $esi, $r8d, $r9d, $r15, $r14, $r13, $r12, $rbx, $rbp
356 frame-setup PUSH64r killed $rbp, implicit-def $rsp, implicit $rsp
357 CFI_INSTRUCTION def_cfa_offset 16
358 CFI_INSTRUCTION offset $rbp, -16
359 $rbp = frame-setup MOV64rr $rsp
360 CFI_INSTRUCTION def_cfa_register $rbp
361 frame-setup PUSH64r killed $r15, implicit-def $rsp, implicit $rsp
362 frame-setup PUSH64r killed $r14, implicit-def $rsp, implicit $rsp
363 frame-setup PUSH64r killed $r13, implicit-def $rsp, implicit $rsp
364 frame-setup PUSH64r killed $r12, implicit-def $rsp, implicit $rsp
365 frame-setup PUSH64r killed $rbx, implicit-def $rsp, implicit $rsp
366 $rsp = frame-setup SUB64ri8 $rsp, 24, implicit-def dead $eflags
367 CFI_INSTRUCTION offset $rbx, -56
368 CFI_INSTRUCTION offset $r12, -48
369 CFI_INSTRUCTION offset $r13, -40
370 CFI_INSTRUCTION offset $r14, -32
371 CFI_INSTRUCTION offset $r15, -24
372 DBG_VALUE $edi, _, !24, !38, debug-location !39
373 DBG_VALUE $esi, _, !25, !38, debug-location !40
374 DBG_VALUE $edx, _, !26, !38, debug-location !41
375 DBG_VALUE $ecx, _, !27, !38, debug-location !42
376 DBG_VALUE $r8d, _, !28, !38, debug-location !43
377 DBG_VALUE $r9d, _, !29, !38, debug-location !44
379 DBG_VALUE $r14d, _, !28, !38, debug-location !43
381 DBG_VALUE $r12d, _, !25, !38, debug-location !40
383 DBG_VALUE $eax, _, !24, !38, debug-location !39
384 $r13d = MOV32rm $rip, 1, _, @glob0, _, debug-location !46 :: (dereferenceable load 4 from @glob0, !tbaa !47)
385 DBG_VALUE $r13d, _, !31, !38, debug-location !51
386 $r8d = MOV32rm $rip, 1, _, @glob1, _, debug-location !52 :: (dereferenceable load 4 from @glob1, !tbaa !47)
387 DBG_VALUE $r8d, _, !32, !38, debug-location !53
388 $r15d = MOV32rm $rip, 1, _, @glob2, _, debug-location !54 :: (dereferenceable load 4 from @glob2, !tbaa !47)
389 DBG_VALUE $r15d, _, !33, !38, debug-location !55
390 $esi = MOV32rm $rip, 1, _, @glob3, _, debug-location !56 :: (dereferenceable load 4 from @glob3, !tbaa !47)
391 DBG_VALUE $esi, _, !34, !38, debug-location !57
392 $ebx = MOV32rm $rip, 1, _, @glob4, _, debug-location !59 :: (dereferenceable load 4 from @glob4, !tbaa !47)
393 DBG_VALUE $ebx, _, !35, !38, debug-location !60
394 MOV32mr $rbp, 1, _, -44, _, $ebx, debug-location !60 :: (store 4 into %ir.inte, !tbaa !47)
395 $edi = MOV32rm $rip, 1, _, @glob5, _, debug-location !62 :: (dereferenceable load 4 from @glob5, !tbaa !47)
396 DBG_VALUE $edi, _, !36, !38, debug-location !63
397 MOV32mr $rbp, 1, _, -60, _, $edi, debug-location !63 :: (store 4 into %ir.intf, !tbaa !47)
398 TEST32rr killed $eax, $eax, implicit-def $eflags, debug-location !67
399 JCC_1 %bb.5.cleanup, 5, implicit $eflags
402 successors: %bb.2(0x30000000), %bb.3.if.then4(0x50000000)
403 liveins: $ebx, $ecx, $edi, $edx, $esi, $r8d, $r9d, $r12d, $r13d, $r14d, $r15d, $rbp
405 MOV32mr $rbp, 1, _, -48, _, killed $edx :: (store 4 into %stack.5)
406 MOV32mr $rbp, 1, _, -52, _, killed $r8d :: (store 4 into %stack.4)
407 MOV32mr $rbp, 1, _, -56, _, killed $esi :: (store 4 into %stack.3)
408 DBG_VALUE _, _, !30, !38, debug-location !45
409 $r14d = ADD32rr killed $r14d, killed $ecx, implicit-def dead $eflags, debug-location !68
410 $r14d = ADD32rr killed $r14d, killed $r9d, implicit-def dead $eflags, debug-location !69
411 $r14d = IMUL32rm killed $r14d, $rbp, 1, _, 16, _, implicit-def dead $eflags, debug-location !70 :: (load 4 from %fixed-stack.6, align 16)
412 DBG_VALUE $r14d, _, !26, !38, debug-location !41
413 CALL64pcrel32 @use, csr_64, implicit $rsp, implicit $edi, implicit-def $rsp, debug-location !72
414 $edi = MOV32rr killed $ebx, debug-location !73
415 CALL64pcrel32 @use, csr_64, implicit $rsp, implicit $edi, implicit-def $rsp, debug-location !73
416 TEST32rr killed $r12d, $r12d, implicit-def $eflags, debug-location !74
417 JCC_1 %bb.2, 4, implicit $eflags
420 successors: %bb.4.if.end13(0x80000000)
421 liveins: $r14d, $r15d, $rbp
423 $rdi = LEA64r $rbp, 1, _, -44, _
424 DBG_VALUE $rbp, -44, !35, !38, debug-location !60
425 $rsi = LEA64r $rbp, 1, _, -60, _
426 DBG_VALUE $rbp, -60, !36, !38, debug-location !63
427 $rdx = LEA64r $rbp, 1, _, -64, _
428 DBG_VALUE $rbp, -64, !37, !38, debug-location !78
429 CALL64pcrel32 @set, csr_64, implicit $rsp, implicit $rdi, implicit $rsi, implicit $rdx, implicit-def $rsp, debug-location !79
430 $eax = MOV32rm $rbp, 1, _, -44, _, debug-location !81 :: (dereferenceable load 4 from %ir.inte, !tbaa !47)
431 DBG_VALUE $eax, _, !35, !38, debug-location !60
432 $r15d = ADD32rm killed $r15d, $rbp, 1, _, -52, _, implicit-def dead $eflags, debug-location !82 :: (load 4 from %stack.4)
433 $r15d = IMUL32rr killed $r15d, $eax, implicit-def dead $eflags, debug-location !82
434 $r15d = ADD32rm killed $r15d, $rbp, 1, _, -56, _, implicit-def dead $eflags, debug-location !83 :: (load 4 from %stack.3)
435 $r15d = IMUL32rr killed $r15d, killed $eax, implicit-def dead $eflags, debug-location !84
436 DBG_VALUE $r15d, _, !31, !38, debug-location !51
437 $r13d = MOV32rr killed $r15d
438 DBG_VALUE $r13d, _, !31, !38, debug-location !51
442 successors: %bb.4.if.end13(0x80000000)
443 liveins: $r13d, $r14d, $rbp
445 $r14d = ADD32rm killed $r14d, $rbp, 1, _, -48, _, implicit-def dead $eflags, debug-location !71 :: (load 4 from %stack.5)
446 DBG_VALUE $r14d, _, !26, !38, debug-location !41
449 successors: %bb.5.cleanup(0x80000000)
450 liveins: $r13d, $r14d, $rbp
452 DBG_VALUE $r14d, _, !26, !38, debug-location !41
453 DBG_VALUE $r13d, _, !31, !38, debug-location !51
454 $r13d = IMUL32rm killed $r13d, $rbp, 1, _, 16, _, implicit-def dead $eflags, debug-location !86 :: (load 4 from %fixed-stack.6, align 16)
455 $r13d = ADD32rr killed $r13d, killed $r14d, implicit-def dead $eflags, debug-location !87
456 DBG_VALUE $r13d, _, !26, !38, debug-location !41
457 $edi = MOV32rr killed $r13d, debug-location !88
458 CALL64pcrel32 @use, csr_64, implicit $rsp, implicit $edi, implicit-def $rsp, debug-location !88
463 $rsp = ADD64ri8 $rsp, 24, implicit-def dead $eflags, debug-location !90
464 $rbx = POP64r implicit-def $rsp, implicit $rsp, debug-location !90
465 $r12 = POP64r implicit-def $rsp, implicit $rsp, debug-location !90
466 $r13 = POP64r implicit-def $rsp, implicit $rsp, debug-location !90
467 $r14 = POP64r implicit-def $rsp, implicit $rsp, debug-location !90
468 $r15 = POP64r implicit-def $rsp, implicit $rsp, debug-location !90
469 $rbp = POP64r implicit-def $rsp, implicit $rsp, debug-location !90
470 RETQ debug-location !90