1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=thumbv8.1m.main -run-pass=arm-low-overhead-loops %s -o - | FileCheck %s
5 define dso_local arm_aapcscc void @test_debug(i32 %d, i32* %e, i16* nocapture readonly %k, i16* nocapture readonly %l) !dbg !15 {
7 call void @llvm.dbg.value(metadata i32 %d, metadata !23, metadata !DIExpression()), !dbg !32
8 call void @llvm.dbg.value(metadata i32* %e, metadata !24, metadata !DIExpression()), !dbg !32
9 call void @llvm.dbg.value(metadata i16* %k, metadata !25, metadata !DIExpression()), !dbg !32
10 call void @llvm.dbg.value(metadata i16* %l, metadata !26, metadata !DIExpression()), !dbg !32
11 call void @llvm.dbg.value(metadata i16 0, metadata !29, metadata !DIExpression()), !dbg !32
12 %call = tail call arm_aapcscc signext i16 @get_input(i32 %d, i32* %e, i16 signext 0) #4, !dbg !33
13 call void @llvm.dbg.value(metadata i16 %call, metadata !28, metadata !DIExpression()), !dbg !32
14 call void @llvm.dbg.value(metadata i32 0, metadata !30, metadata !DIExpression()), !dbg !32
15 %cmp30 = icmp sgt i32 %d, 0, !dbg !34
16 br i1 %cmp30, label %for.cond1.preheader.us.preheader, label %for.end11, !dbg !37
18 for.cond1.preheader.us.preheader: ; preds = %entry
19 %0 = shl i32 %d, 1, !dbg !37
20 br label %for.cond1.preheader.us, !dbg !37
22 for.cond1.preheader.us: ; preds = %for.cond1.preheader.us.preheader, %for.cond1.for.inc9_crit_edge.us
23 %lsr.iv2 = phi i16* [ %k, %for.cond1.preheader.us.preheader ], [ %9, %for.cond1.for.inc9_crit_edge.us ]
24 %i.031.us = phi i32 [ %inc10.us, %for.cond1.for.inc9_crit_edge.us ], [ 0, %for.cond1.preheader.us.preheader ]
25 call void @llvm.dbg.value(metadata i32 %i.031.us, metadata !30, metadata !DIExpression()), !dbg !32
26 call void @llvm.dbg.value(metadata i32 0, metadata !31, metadata !DIExpression()), !dbg !32
27 %arrayidx7.us = getelementptr inbounds i32, i32* %e, i32 %i.031.us, !dbg !38
28 %arrayidx7.promoted.us = load i32, i32* %arrayidx7.us, align 4, !dbg !41
29 %start = call i32 @llvm.start.loop.iterations.i32(i32 %d), !dbg !46
30 br label %for.body3.us, !dbg !46
32 for.body3.us: ; preds = %for.body3.us, %for.cond1.preheader.us
33 %lsr.iv5 = phi i16* [ %scevgep6, %for.body3.us ], [ %lsr.iv2, %for.cond1.preheader.us ], !dbg !32
34 %lsr.iv1 = phi i16* [ %scevgep, %for.body3.us ], [ %l, %for.cond1.preheader.us ], !dbg !32
35 %add829.us = phi i32 [ %arrayidx7.promoted.us, %for.cond1.preheader.us ], [ %add8.us, %for.body3.us ], !dbg !32
36 %1 = phi i32 [ %start, %for.cond1.preheader.us ], [ %4, %for.body3.us ], !dbg !32
37 call void @llvm.dbg.value(metadata i32 undef, metadata !31, metadata !DIExpression()), !dbg !32
38 %2 = load i16, i16* %lsr.iv5, align 2, !dbg !47
39 %conv.us = sext i16 %2 to i32, !dbg !47
40 %3 = load i16, i16* %lsr.iv1, align 2, !dbg !50
41 %conv5.us = sext i16 %3 to i32, !dbg !50
42 %mul6.us = mul nsw i32 %conv5.us, %conv.us, !dbg !51
43 %add8.us = add nsw i32 %mul6.us, %add829.us, !dbg !41
44 call void @llvm.dbg.value(metadata i32 undef, metadata !31, metadata !DIExpression(DW_OP_plus_uconst, 1, DW_OP_stack_value)), !dbg !32
45 %scevgep = getelementptr i16, i16* %lsr.iv1, i32 1, !dbg !52
46 %scevgep6 = getelementptr i16, i16* %lsr.iv5, i32 1, !dbg !52
47 %4 = call i32 @llvm.loop.decrement.reg.i32.i32.i32(i32 %1, i32 1), !dbg !46
48 %5 = icmp ne i32 %4, 0, !dbg !46
49 br i1 %5, label %for.body3.us, label %for.cond1.for.inc9_crit_edge.us, !dbg !46, !llvm.loop !53
51 for.cond1.for.inc9_crit_edge.us: ; preds = %for.body3.us
52 %6 = bitcast i16* %lsr.iv2 to i1*
53 %sunkaddr = mul i32 %i.031.us, 4, !dbg !41
54 %7 = bitcast i32* %e to i8*, !dbg !41
55 %sunkaddr7 = getelementptr inbounds i8, i8* %7, i32 %sunkaddr, !dbg !41
56 %8 = bitcast i8* %sunkaddr7 to i32*, !dbg !41
57 store i32 %add8.us, i32* %8, align 4, !dbg !41
58 %inc10.us = add nuw nsw i32 %i.031.us, 1, !dbg !55
59 call void @llvm.dbg.value(metadata i32 %inc10.us, metadata !30, metadata !DIExpression()), !dbg !32
60 %scevgep4 = getelementptr i1, i1* %6, i32 %0, !dbg !37
61 %9 = bitcast i1* %scevgep4 to i16*, !dbg !37
62 %exitcond33 = icmp eq i32 %inc10.us, %d, !dbg !34
63 br i1 %exitcond33, label %for.end11, label %for.cond1.preheader.us, !dbg !37, !llvm.loop !56
65 for.end11: ; preds = %for.cond1.for.inc9_crit_edge.us, %entry
68 declare !dbg !4 dso_local arm_aapcscc signext i16 @get_input(i32, i32*, i16 signext)
69 declare void @llvm.dbg.value(metadata, metadata, metadata)
70 declare i32 @llvm.start.loop.iterations.i32(i32)
71 declare i32 @llvm.loop.decrement.reg.i32.i32.i32(i32, i32)
74 !llvm.module.flags = !{!10, !11, !12, !13}
77 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 10.0.0 (https://github.com/llvm/llvm-project.git 9c91d79dadc660cb6a0ec736389341debd8cd118)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !3, splitDebugInlining: false, nameTableKind: None)
78 !1 = !DIFile(filename: "matrix-hang.c", directory: "/home/sampar01/src/tests/tail-predication")
81 !4 = !DISubprogram(name: "get_input", scope: !1, file: !1, line: 4, type: !5, flags: DIFlagPrototyped, spFlags: DISPFlagOptimized, retainedNodes: !2)
82 !5 = !DISubroutineType(types: !6)
83 !6 = !{!7, !8, !9, !7}
84 !7 = !DIBasicType(name: "short", size: 16, encoding: DW_ATE_signed)
85 !8 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
86 !9 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !8, size: 32)
87 !10 = !{i32 7, !"Dwarf Version", i32 4}
88 !11 = !{i32 2, !"Debug Info Version", i32 3}
89 !12 = !{i32 1, !"wchar_size", i32 4}
90 !13 = !{i32 1, !"min_enum_size", i32 4}
91 !14 = !{!"clang version 10.0.0 (https://github.com/llvm/llvm-project.git 9c91d79dadc660cb6a0ec736389341debd8cd118)"}
92 !15 = distinct !DISubprogram(name: "test_debug", scope: !1, file: !1, line: 6, type: !16, scopeLine: 6, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !22)
93 !16 = !DISubroutineType(types: !17)
94 !17 = !{null, !18, !19, !21, !21}
95 !18 = !DIDerivedType(tag: DW_TAG_typedef, name: "a", file: !1, line: 1, baseType: !8)
96 !19 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !20, size: 32)
97 !20 = !DIDerivedType(tag: DW_TAG_typedef, name: "b", file: !1, line: 2, baseType: !8)
98 !21 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !7, size: 32)
99 !22 = !{!23, !24, !25, !26, !27, !28, !29, !30, !31}
100 !23 = !DILocalVariable(name: "d", arg: 1, scope: !15, file: !1, line: 6, type: !18)
101 !24 = !DILocalVariable(name: "e", arg: 2, scope: !15, file: !1, line: 6, type: !19)
102 !25 = !DILocalVariable(name: "k", arg: 3, scope: !15, file: !1, line: 6, type: !21)
103 !26 = !DILocalVariable(name: "l", arg: 4, scope: !15, file: !1, line: 6, type: !21)
104 !27 = !DILocalVariable(name: "m", scope: !15, file: !1, line: 7, type: !7)
105 !28 = !DILocalVariable(name: "n", scope: !15, file: !1, line: 7, type: !7)
106 !29 = !DILocalVariable(name: "clipval", scope: !15, file: !1, line: 7, type: !7)
107 !30 = !DILocalVariable(name: "i", scope: !15, file: !1, line: 9, type: !18)
108 !31 = !DILocalVariable(name: "j", scope: !15, file: !1, line: 9, type: !18)
109 !32 = !DILocation(line: 0, scope: !15)
110 !33 = !DILocation(line: 8, column: 7, scope: !15)
111 !34 = !DILocation(line: 10, column: 17, scope: !35)
112 !35 = distinct !DILexicalBlock(scope: !36, file: !1, line: 10, column: 3)
113 !36 = distinct !DILexicalBlock(scope: !15, file: !1, line: 10, column: 3)
114 !37 = !DILocation(line: 10, column: 3, scope: !36)
115 !38 = !DILocation(line: 0, scope: !39)
116 !39 = distinct !DILexicalBlock(scope: !40, file: !1, line: 11, column: 5)
117 !40 = distinct !DILexicalBlock(scope: !35, file: !1, line: 11, column: 5)
118 !41 = !DILocation(line: 12, column: 12, scope: !39)
119 !42 = !{!43, !43, i64 0}
120 !43 = !{!"int", !44, i64 0}
121 !44 = !{!"omnipotent char", !45, i64 0}
122 !45 = !{!"Simple C/C++ TBAA"}
123 !46 = !DILocation(line: 11, column: 5, scope: !40)
124 !47 = !DILocation(line: 12, column: 15, scope: !39)
125 !48 = !{!49, !49, i64 0}
126 !49 = !{!"short", !44, i64 0}
127 !50 = !DILocation(line: 12, column: 30, scope: !39)
128 !51 = !DILocation(line: 12, column: 28, scope: !39)
129 !52 = !DILocation(line: 11, column: 19, scope: !39)
130 !53 = distinct !{!53, !46, !54}
131 !54 = !DILocation(line: 12, column: 33, scope: !40)
132 !55 = !DILocation(line: 10, column: 23, scope: !35)
133 !56 = distinct !{!56, !37, !57}
134 !57 = !DILocation(line: 12, column: 33, scope: !36)
135 !58 = !DILocation(line: 13, column: 1, scope: !15)
141 exposesReturnsTwice: false
143 regBankSelected: false
146 tracksRegLiveness: true
150 - { reg: '$r0', virtual-reg: '' }
151 - { reg: '$r1', virtual-reg: '' }
152 - { reg: '$r2', virtual-reg: '' }
153 - { reg: '$r3', virtual-reg: '' }
155 isFrameAddressTaken: false
156 isReturnAddressTaken: false
160 offsetAdjustment: -24
166 cvBytesOfCalleeSavedRegisters: 0
167 hasOpaqueSPAdjustment: false
169 hasMustTailInVarArgFunc: false
175 - { id: 0, name: '', type: spill-slot, offset: -4, size: 4, alignment: 4,
176 stack-id: default, callee-saved-register: '$lr', callee-saved-restored: false,
177 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
178 - { id: 1, name: '', type: spill-slot, offset: -8, size: 4, alignment: 4,
179 stack-id: default, callee-saved-register: '$r7', callee-saved-restored: true,
180 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
181 - { id: 2, name: '', type: spill-slot, offset: -12, size: 4, alignment: 4,
182 stack-id: default, callee-saved-register: '$r6', callee-saved-restored: true,
183 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
184 - { id: 3, name: '', type: spill-slot, offset: -16, size: 4, alignment: 4,
185 stack-id: default, callee-saved-register: '$r5', callee-saved-restored: true,
186 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
187 - { id: 4, name: '', type: spill-slot, offset: -20, size: 4, alignment: 4,
188 stack-id: default, callee-saved-register: '$r4', callee-saved-restored: true,
189 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
190 - { id: 5, name: '', type: spill-slot, offset: -24, size: 4, alignment: 4,
191 stack-id: default, callee-saved-register: '$r10', callee-saved-restored: true,
192 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
193 - { id: 6, name: '', type: spill-slot, offset: -28, size: 4, alignment: 4,
194 stack-id: default, callee-saved-register: '$r9', callee-saved-restored: true,
195 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
196 - { id: 7, name: '', type: spill-slot, offset: -32, size: 4, alignment: 4,
197 stack-id: default, callee-saved-register: '$r8', callee-saved-restored: true,
198 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
201 machineFunctionInfo: {}
203 ; CHECK-LABEL: name: test_debug
205 ; CHECK: successors: %bb.1(0x50000000), %bb.5(0x30000000)
206 ; CHECK: liveins: $r0, $r1, $r2, $r3, $r4, $r5, $r6, $lr, $r8, $r9, $r10
207 ; CHECK: DBG_VALUE $r0, $noreg, !23, !DIExpression(), debug-location !32
208 ; CHECK: DBG_VALUE $r1, $noreg, !24, !DIExpression(), debug-location !32
209 ; CHECK: DBG_VALUE $r2, $noreg, !25, !DIExpression(), debug-location !32
210 ; CHECK: DBG_VALUE $r3, $noreg, !26, !DIExpression(), debug-location !32
211 ; CHECK: frame-setup tPUSH 14 /* CC::al */, $noreg, killed $r4, killed $r5, killed $r6, killed $lr, implicit-def $sp, implicit $sp
212 ; CHECK: frame-setup CFI_INSTRUCTION def_cfa_offset 20
213 ; CHECK: frame-setup CFI_INSTRUCTION offset $lr, -4
214 ; CHECK: frame-setup CFI_INSTRUCTION offset $r7, -8
215 ; CHECK: frame-setup CFI_INSTRUCTION offset $r6, -12
216 ; CHECK: frame-setup CFI_INSTRUCTION offset $r5, -16
217 ; CHECK: frame-setup CFI_INSTRUCTION offset $r4, -20
218 ; CHECK: $r7 = frame-setup tADDrSPi $sp, 3, 14 /* CC::al */, $noreg
219 ; CHECK: frame-setup CFI_INSTRUCTION def_cfa $r7, 8
220 ; CHECK: $sp = frame-setup t2STMDB_UPD $sp, 14 /* CC::al */, $noreg, killed $r8, killed $r9, killed $r10
221 ; CHECK: frame-setup CFI_INSTRUCTION offset $r10, -24
222 ; CHECK: frame-setup CFI_INSTRUCTION offset $r9, -28
223 ; CHECK: frame-setup CFI_INSTRUCTION offset $r8, -32
224 ; CHECK: $r5 = tMOVr killed $r2, 14 /* CC::al */, $noreg
225 ; CHECK: DBG_VALUE $r5, $noreg, !25, !DIExpression(), debug-location !32
226 ; CHECK: $r2, dead $cpsr = tMOVi8 0, 14 /* CC::al */, $noreg, debug-location !33
227 ; CHECK: $r8 = tMOVr killed $r3, 14 /* CC::al */, $noreg
228 ; CHECK: DBG_VALUE $r8, $noreg, !26, !DIExpression(), debug-location !32
229 ; CHECK: $r9 = tMOVr $r1, 14 /* CC::al */, $noreg
230 ; CHECK: DBG_VALUE $r9, $noreg, !24, !DIExpression(), debug-location !32
231 ; CHECK: $r10 = tMOVr $r0, 14 /* CC::al */, $noreg
232 ; CHECK: DBG_VALUE 0, $noreg, !29, !DIExpression(), debug-location !32
233 ; CHECK: DBG_VALUE $r10, $noreg, !23, !DIExpression(), debug-location !32
234 ; CHECK: tBL 14 /* CC::al */, $noreg, @get_input, csr_aapcs, implicit-def dead $lr, implicit $sp, implicit killed $r0, implicit killed $r1, implicit killed $r2, implicit-def $sp, implicit-def dead $r0, debug-location !33
235 ; CHECK: DBG_VALUE 0, $noreg, !30, !DIExpression(), debug-location !32
236 ; CHECK: DBG_VALUE $noreg, $noreg, !28, !DIExpression(), debug-location !32
237 ; CHECK: t2CMPri renamable $r10, 1, 14 /* CC::al */, $noreg, implicit-def $cpsr, debug-location !37
238 ; CHECK: tBcc %bb.5, 11 /* CC::lt */, killed $cpsr, debug-location !37
239 ; CHECK: bb.1.for.cond1.preheader.us.preheader:
240 ; CHECK: successors: %bb.2(0x80000000)
241 ; CHECK: liveins: $r5, $r8, $r9, $r10
242 ; CHECK: renamable $r12 = t2LSLri renamable $r10, 1, 14 /* CC::al */, $noreg, $noreg, debug-location !37
243 ; CHECK: renamable $r1, dead $cpsr = tMOVi8 0, 14 /* CC::al */, $noreg
244 ; CHECK: bb.2.for.cond1.preheader.us:
245 ; CHECK: successors: %bb.3(0x80000000)
246 ; CHECK: liveins: $r1, $r5, $r8, $r9, $r10, $r12
247 ; CHECK: DBG_VALUE $r1, $noreg, !30, !DIExpression(), debug-location !32
248 ; CHECK: DBG_VALUE 0, $noreg, !31, !DIExpression(), debug-location !32
249 ; CHECK: renamable $r2 = t2LDRs renamable $r9, renamable $r1, 2, 14 /* CC::al */, $noreg, debug-location !41 :: (load (s32) from %ir.arrayidx7.us)
250 ; CHECK: $r3 = tMOVr $r5, 14 /* CC::al */, $noreg, debug-location !32
251 ; CHECK: $r0 = tMOVr $r8, 14 /* CC::al */, $noreg, debug-location !32
252 ; CHECK: dead $lr = tMOVr $r10, 14 /* CC::al */, $noreg, debug-location !32
253 ; CHECK: $lr = t2DLS renamable $r10, debug-location !42
254 ; CHECK: bb.3.for.body3.us:
255 ; CHECK: successors: %bb.3(0x7c000000), %bb.4(0x04000000)
256 ; CHECK: liveins: $lr, $r0, $r1, $r2, $r3, $r5, $r8, $r9, $r10, $r12
257 ; CHECK: DBG_VALUE $noreg, $noreg, !31, !DIExpression(), debug-location !32
258 ; CHECK: renamable $r6, renamable $r3 = t2LDRSH_POST killed renamable $r3, 2, 14 /* CC::al */, $noreg, debug-location !43 :: (load (s16) from %ir.lsr.iv5)
259 ; CHECK: renamable $r4, renamable $r0 = t2LDRSH_POST killed renamable $r0, 2, 14 /* CC::al */, $noreg, debug-location !44 :: (load (s16) from %ir.lsr.iv1)
260 ; CHECK: renamable $r2 = nsw t2SMLABB killed renamable $r4, killed renamable $r6, killed renamable $r2, 14 /* CC::al */, $noreg, debug-location !41
261 ; CHECK: DBG_VALUE $noreg, $noreg, !31, !DIExpression(DW_OP_plus_uconst, 1, DW_OP_stack_value), debug-location !32
262 ; CHECK: $lr = t2LEUpdate killed renamable $lr, %bb.3, debug-location !42
263 ; CHECK: bb.4.for.cond1.for.inc9_crit_edge.us:
264 ; CHECK: successors: %bb.5(0x04000000), %bb.2(0x7c000000)
265 ; CHECK: liveins: $r1, $r2, $r5, $r8, $r9, $r10, $r12
266 ; CHECK: t2STRs killed renamable $r2, renamable $r9, renamable $r1, 2, 14 /* CC::al */, $noreg, debug-location !41 :: (store (s32) into %ir.8)
267 ; CHECK: renamable $r1, dead $cpsr = nuw nsw tADDi8 killed renamable $r1, 1, 14 /* CC::al */, $noreg, debug-location !49
268 ; CHECK: DBG_VALUE $r1, $noreg, !30, !DIExpression(), debug-location !32
269 ; CHECK: renamable $r5 = tADDhirr killed renamable $r5, renamable $r12, 14 /* CC::al */, $noreg, debug-location !37
270 ; CHECK: tCMPhir renamable $r1, renamable $r10, 14 /* CC::al */, $noreg, implicit-def $cpsr, debug-location !37
271 ; CHECK: tBcc %bb.2, 1 /* CC::ne */, killed $cpsr, debug-location !37
272 ; CHECK: bb.5.for.end11:
273 ; CHECK: $sp = t2LDMIA_UPD $sp, 14 /* CC::al */, $noreg, def $r8, def $r9, def $r10, debug-location !52
274 ; CHECK: tPOP_RET 14 /* CC::al */, $noreg, def $r4, def $r5, def $r6, def $r7, def $pc, debug-location !52
276 successors: %bb.1(0x50000000), %bb.5(0x30000000)
277 liveins: $r0, $r1, $r2, $r3, $r4, $r5, $r6, $lr, $r8, $r9, $r10
279 DBG_VALUE $r0, $noreg, !23, !DIExpression(), debug-location !32
280 DBG_VALUE $r1, $noreg, !24, !DIExpression(), debug-location !32
281 DBG_VALUE $r2, $noreg, !25, !DIExpression(), debug-location !32
282 DBG_VALUE $r3, $noreg, !26, !DIExpression(), debug-location !32
283 frame-setup tPUSH 14, $noreg, killed $r4, killed $r5, killed $r6, killed $lr, implicit-def $sp, implicit $sp
284 frame-setup CFI_INSTRUCTION def_cfa_offset 20
285 frame-setup CFI_INSTRUCTION offset $lr, -4
286 frame-setup CFI_INSTRUCTION offset $r7, -8
287 frame-setup CFI_INSTRUCTION offset $r6, -12
288 frame-setup CFI_INSTRUCTION offset $r5, -16
289 frame-setup CFI_INSTRUCTION offset $r4, -20
290 $r7 = frame-setup tADDrSPi $sp, 3, 14, $noreg
291 frame-setup CFI_INSTRUCTION def_cfa $r7, 8
292 $sp = frame-setup t2STMDB_UPD $sp, 14, $noreg, killed $r8, killed $r9, killed $r10
293 frame-setup CFI_INSTRUCTION offset $r10, -24
294 frame-setup CFI_INSTRUCTION offset $r9, -28
295 frame-setup CFI_INSTRUCTION offset $r8, -32
296 $r5 = tMOVr killed $r2, 14, $noreg
297 DBG_VALUE $r5, $noreg, !25, !DIExpression(), debug-location !32
298 $r2, dead $cpsr = tMOVi8 0, 14, $noreg, debug-location !33
299 $r8 = tMOVr killed $r3, 14, $noreg
300 DBG_VALUE $r8, $noreg, !26, !DIExpression(), debug-location !32
301 $r9 = tMOVr $r1, 14, $noreg
302 DBG_VALUE $r9, $noreg, !24, !DIExpression(), debug-location !32
303 $r10 = tMOVr $r0, 14, $noreg
304 DBG_VALUE 0, $noreg, !29, !DIExpression(), debug-location !32
305 DBG_VALUE $r10, $noreg, !23, !DIExpression(), debug-location !32
306 tBL 14, $noreg, @get_input, csr_aapcs, implicit-def dead $lr, implicit $sp, implicit killed $r0, implicit killed $r1, implicit killed $r2, implicit-def $sp, implicit-def dead $r0, debug-location !33
307 DBG_VALUE 0, $noreg, !30, !DIExpression(), debug-location !32
308 DBG_VALUE $noreg, $noreg, !28, !DIExpression(), debug-location !32
309 t2CMPri renamable $r10, 1, 14, $noreg, implicit-def $cpsr, debug-location !37
310 tBcc %bb.5, 11, killed $cpsr, debug-location !37
312 bb.1.for.cond1.preheader.us.preheader:
313 successors: %bb.2(0x80000000)
314 liveins: $r5, $r8, $r9, $r10
316 renamable $r12 = t2LSLri renamable $r10, 1, 14, $noreg, $noreg, debug-location !37
317 renamable $r1, dead $cpsr = tMOVi8 0, 14, $noreg
319 bb.2.for.cond1.preheader.us:
320 successors: %bb.3(0x80000000)
321 liveins: $r1, $r5, $r8, $r9, $r10, $r12
323 DBG_VALUE $r1, $noreg, !30, !DIExpression(), debug-location !32
324 DBG_VALUE 0, $noreg, !31, !DIExpression(), debug-location !32
325 renamable $r2 = t2LDRs renamable $r9, renamable $r1, 2, 14, $noreg, debug-location !41 :: (load (s32) from %ir.arrayidx7.us)
326 $r3 = tMOVr $r5, 14, $noreg, debug-location !32
327 $r0 = tMOVr $r8, 14, $noreg, debug-location !32
328 $lr = tMOVr $r10, 14, $noreg, debug-location !32
329 $lr = t2DoLoopStart renamable $r10, debug-location !46
332 successors: %bb.3(0x7c000000), %bb.4(0x04000000)
333 liveins: $lr, $r0, $r1, $r2, $r3, $r5, $r8, $r9, $r10, $r12
335 DBG_VALUE $noreg, $noreg, !31, !DIExpression(), debug-location !32
336 renamable $r6, renamable $r3 = t2LDRSH_POST killed renamable $r3, 2, 14, $noreg, debug-location !47 :: (load (s16) from %ir.lsr.iv5)
337 renamable $lr = t2LoopDec killed renamable $lr, 1, debug-location !46
338 renamable $r4, renamable $r0 = t2LDRSH_POST killed renamable $r0, 2, 14, $noreg, debug-location !50 :: (load (s16) from %ir.lsr.iv1)
339 renamable $r2 = nsw t2SMLABB killed renamable $r4, killed renamable $r6, killed renamable $r2, 14, $noreg, debug-location !41
340 DBG_VALUE $noreg, $noreg, !31, !DIExpression(DW_OP_plus_uconst, 1, DW_OP_stack_value), debug-location !32
341 t2LoopEnd renamable $lr, %bb.3, implicit-def dead $cpsr, debug-location !46
342 tB %bb.4, 14, $noreg, debug-location !46
344 bb.4.for.cond1.for.inc9_crit_edge.us:
345 successors: %bb.5(0x04000000), %bb.2(0x7c000000)
346 liveins: $r1, $r2, $r5, $r8, $r9, $r10, $r12
348 t2STRs killed renamable $r2, renamable $r9, renamable $r1, 2, 14, $noreg, debug-location !41 :: (store (s32) into %ir.8)
349 renamable $r1, dead $cpsr = nuw nsw tADDi8 killed renamable $r1, 1, 14, $noreg, debug-location !55
350 DBG_VALUE $r1, $noreg, !30, !DIExpression(), debug-location !32
351 renamable $r5 = tADDhirr killed renamable $r5, renamable $r12, 14, $noreg, debug-location !37
352 tCMPhir renamable $r1, renamable $r10, 14, $noreg, implicit-def $cpsr, debug-location !37
353 tBcc %bb.2, 1, killed $cpsr, debug-location !37
356 $sp = t2LDMIA_UPD $sp, 14, $noreg, def $r8, def $r9, def $r10, debug-location !58
357 tPOP_RET 14, $noreg, def $r4, def $r5, def $r6, def $r7, def $pc, debug-location !58