1# RUN: llc -run-pass=livedebugvalues -o - %s | FileCheck %s 2# 3# This test is used to acknowledge situation when spill register is killed 4# in instruction after the spill occurs. 5# Generated MIR is changed in order to test case when instruction after 6# possible spill, say instruction B, kills register different than than 7# the one that is used in possible spill, say instruction A. In that case 8# the instruction A is not recognized as spill. Changed instructions are 9# commented in MIR below. 10# 11# ... 12# A - possible spill instruction with register R2 13# B - instruction that kills R3 14# ... 15# 16# CHECK: bb.1.if.end: 17# CHECK: DBG_VALUE debug-use $rbp, 0, !37, !DIExpression(DW_OP_constu, 44, DW_OP_minus), debug-location !58 18# CHECK-NOT: DBG_VALUE debug-use $rbp, 0, !36, !DIExpression(DW_OP_constu, 48, DW_OP_minus), debug-location !57 19 20--- | 21 ; ModuleID = '<stdin>' 22 source_filename = "<stdin>" 23 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 24 target triple = "x86_64-unknown-linux-gnu" 25 26 %struct.firstStruct = type { i32, i8, %struct.secondStruct* } 27 %struct.secondStruct = type { i32, i8, i8* } 28 %struct.thirdStruct = type { %struct.fourthStruct, i32*, i8* } 29 %struct.fourthStruct = type { i32, i32, i32, i32 } 30 31 @.str = private unnamed_addr constant [7 x i8] c"Error:\00", align 1 32 @firstStruct = common local_unnamed_addr global %struct.firstStruct zeroinitializer, align 8, !dbg !0 33 34 ; Function Attrs: nounwind uwtable 35 define i32 @foo(i32 %variable2, i32 %variable1) local_unnamed_addr #0 !dbg !31 { 36 entry: 37 %const1 = bitcast i64 -9223372036854775808 to i64 38 %0 = bitcast i64 %const1 to i64 39 call void @llvm.dbg.value(metadata i32 %variable2, metadata !36, metadata !DIExpression()), !dbg !57 40 call void @llvm.dbg.value(metadata i32 %variable1, metadata !37, metadata !DIExpression()), !dbg !58 41 %call = tail call %struct.firstStruct* @func1(i32 %variable1) 42 %1 = ptrtoint %struct.firstStruct* %call to i64 43 %2 = and i64 %1, %0 44 %tobool = icmp eq i64 %2, 0 45 br i1 %tobool, label %cleanup, label %if.end 46 47 if.end: ; preds = %entry 48 %call1 = tail call %struct.thirdStruct* @func2(i32 %variable2, i32 %variable1) 49 %3 = ptrtoint %struct.thirdStruct* %call1 to i64 50 %4 = and i64 %3, -123 51 %tobool2 = icmp eq i64 %4, 0 52 br i1 %tobool2, label %if.then3, label %private.exit 53 54 if.then3: ; preds = %if.end 55 %5 = inttoptr i64 %2 to %struct.firstStruct* 56 %variableLocal11 = bitcast %struct.firstStruct* %5 to i32* 57 %6 = load i32, i32* %variableLocal11, align 8 58 %variableLocal2 = getelementptr inbounds %struct.firstStruct, %struct.firstStruct* %5, i64 0, i32 1 59 %7 = load i8, i8* %variableLocal2, align 4 60 tail call void @func3(i32 %6, i8 zeroext %7, i8 zeroext 5, i8* inttoptr (i64 or (i64 ptrtoint ([7 x i8]* @.str to i64), i64 -92238) to i8*), i32 %variable2) 61 br label %cleanup 62 63 private.exit: ; preds = %if.end 64 %8 = bitcast i64 %const1 to i64 65 %9 = ptrtoint %struct.thirdStruct* %call1 to i64 66 %10 = or i64 %9, %8 67 %11 = inttoptr i64 %10 to i8* 68 %call5.i = tail call i8* @memset(i8* %11, i32 0, i64 16) 69 %call6 = tail call i32 @func4(%struct.thirdStruct* %call1) 70 %tobool7 = icmp eq i32 %call6, 0 71 br i1 %tobool7, label %cleanup, label %if.then8 72 73 if.then8: ; preds = %private.exit 74 %12 = inttoptr i64 %2 to %struct.firstStruct* 75 tail call void @func5(%struct.thirdStruct* %call1, i32 0) 76 %rc_db = getelementptr inbounds %struct.firstStruct, %struct.firstStruct* %12, i64 0, i32 2 77 %13 = bitcast %struct.secondStruct** %rc_db to i64* 78 %14 = load i64, i64* %13, align 8 79 %tobool9 = icmp eq i64 %14, 0 80 br i1 %tobool9, label %cleanup, label %land.lhs.true 81 82 land.lhs.true: ; preds = %if.then8 83 %15 = inttoptr i64 %4 to %struct.thirdStruct* 84 %tot_perf2 = bitcast %struct.thirdStruct* %15 to i32* 85 %16 = load i32, i32* %tot_perf2, align 8 86 %tobool11 = icmp eq i32 %16, 0 87 br i1 %tobool11, label %lor.lhs.false, label %if.then14 88 89 lor.lhs.false: ; preds = %land.lhs.true 90 %17 = inttoptr i64 %4 to %struct.thirdStruct* 91 %tot_bw = getelementptr inbounds %struct.thirdStruct, %struct.thirdStruct* %17, i64 0, i32 0, i32 1 92 %18 = load i32, i32* %tot_bw, align 4 93 %tobool13 = icmp eq i32 %18, 0 94 br i1 %tobool13, label %cleanup, label %if.then14 95 96 if.then14: ; preds = %lor.lhs.false, %land.lhs.true 97 %19 = inttoptr i64 %14 to %struct.secondStruct* 98 %mc_origin = getelementptr inbounds %struct.secondStruct, %struct.secondStruct* %19, i64 0, i32 2 99 %20 = bitcast i8** %mc_origin to i64* 100 %21 = load i64, i64* %20, align 8 101 %22 = inttoptr i64 %21 to i8* 102 tail call void @func6(%struct.thirdStruct* %call1, i32 %variable1, i8* %22) 103 br label %cleanup 104 105 cleanup: ; preds = %if.then14, %lor.lhs.false, %if.then8, %private.exit, %if.then3, %entry 106 %retval.0 = phi i32 [ 0, %if.then3 ], [ 0, %entry ], [ 1, %lor.lhs.false ], [ 1, %if.then8 ], [ 1, %private.exit ], [ 1, %if.then14 ] 107 ret i32 %retval.0 108 } 109 110 declare %struct.firstStruct* @func1(i32) local_unnamed_addr 111 112 declare %struct.thirdStruct* @func2(i32, i32) local_unnamed_addr 113 114 declare void @func3(i32, i8 zeroext, i8 zeroext, i8*, i32) local_unnamed_addr 115 116 declare i32 @func4(%struct.thirdStruct*) local_unnamed_addr 117 118 declare void @func5(%struct.thirdStruct*, i32) local_unnamed_addr 119 120 declare void @func6(%struct.thirdStruct*, i32, i8*) local_unnamed_addr 121 122 declare i8* @__memset_to_buf(i64, i8*, i32, i64) local_unnamed_addr 123 124 declare i8* @memset(i8*, i32, i64) local_unnamed_addr 125 126 ; Function Attrs: nounwind readnone speculatable 127 declare i64 @llvm.objectsize.i64.p0i8(i8*, i1, i1) #1 128 129 ; Function Attrs: nounwind readnone speculatable 130 declare void @llvm.dbg.value(metadata, metadata, metadata) #1 131 132 ; Function Attrs: nounwind 133 declare void @llvm.stackprotector(i8*, i8**) #2 134 135 attributes #0 = { nounwind uwtable "no-frame-pointer-elim-non-leaf" } 136 attributes #1 = { nounwind readnone speculatable } 137 attributes #2 = { nounwind } 138 139 !llvm.dbg.cu = !{!2} 140 !llvm.module.flags = !{!27, !28, !29} 141 !llvm.ident = !{!30} 142 143 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) 144 !1 = distinct !DIGlobalVariable(name: "firstStruct", scope: !2, file: !3, line: 23, type: !11, isLocal: false, isDefinition: true) 145 !2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 4.0.0", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, retainedTypes: !5, globals: !10) 146 !3 = !DIFile(filename: "inlineSpillerTest.c", directory: "/") 147 !4 = !{} 148 !5 = !{!6, !7} 149 !6 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 150 !7 = !DIDerivedType(tag: DW_TAG_typedef, name: "size_t", file: !8, line: 98, baseType: !9) 151 !8 = !DIFile(filename: "/tmp.h", directory: "/tmp") 152 !9 = !DIBasicType(name: "long long unsigned int", size: 64, encoding: DW_ATE_unsigned) 153 !10 = !{!0} 154 !11 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "firstStruct", file: !3, line: 18, size: 128, elements: !12) 155 !12 = !{!13, !16, !19} 156 !13 = !DIDerivedType(tag: DW_TAG_member, name: "elem1", scope: !11, file: !3, line: 20, baseType: !14, size: 32) 157 !14 = !DIDerivedType(tag: DW_TAG_typedef, name: "uint32", file: !3, line: 4, baseType: !15) 158 !15 = !DIBasicType(name: "unsigned int", size: 32, encoding: DW_ATE_unsigned) 159 !16 = !DIDerivedType(tag: DW_TAG_member, name: "elem2", scope: !11, file: !3, line: 21, baseType: !17, size: 8, offset: 32) 160 !17 = !DIDerivedType(tag: DW_TAG_typedef, name: "uint8", file: !3, line: 5, baseType: !18) 161 !18 = !DIBasicType(name: "unsigned char", size: 8, encoding: DW_ATE_unsigned_char) 162 !19 = !DIDerivedType(tag: DW_TAG_member, name: "elem3", scope: !11, file: !3, line: 22, baseType: !20, size: 64, offset: 64) 163 !20 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !21, size: 64) 164 !21 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "secondStruct", file: !3, line: 11, size: 128, elements: !22) 165 !22 = !{!23, !24, !25} 166 !23 = !DIDerivedType(tag: DW_TAG_member, name: "structMember", scope: !21, file: !3, line: 13, baseType: !14, size: 32) 167 !24 = !DIDerivedType(tag: DW_TAG_member, name: "elem4", scope: !21, file: !3, line: 14, baseType: !17, size: 8, offset: 32) 168 !25 = !DIDerivedType(tag: DW_TAG_member, name: "elem5", scope: !21, file: !3, line: 15, baseType: !26, size: 64, offset: 64) 169 !26 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null, size: 64) 170 !27 = !{i32 2, !"Dwarf Version", i32 4} 171 !28 = !{i32 2, !"Debug Info Version", i32 3} 172 !29 = !{i32 7, !"PIC Level", i32 2} 173 !30 = !{!"clang version 4.0.0 "} 174 !31 = distinct !DISubprogram(name: "foo", scope: !3, file: !3, line: 50, type: !32, isLocal: false, isDefinition: true, scopeLine: 52, flags: DIFlagPrototyped, isOptimized: true, unit: !2, retainedNodes: !35) 175 !32 = !DISubroutineType(types: !33) 176 !33 = !{!34, !14, !14} 177 !34 = !DIDerivedType(tag: DW_TAG_typedef, name: "boolean", file: !3, line: 6, baseType: !6) 178 !35 = !{!36, !37, !38, !54, !55} 179 !36 = !DILocalVariable(name: "variable2", arg: 1, scope: !31, file: !3, line: 50, type: !14) 180 !37 = !DILocalVariable(name: "variable1", arg: 2, scope: !31, file: !3, line: 51, type: !14) 181 !38 = !DILocalVariable(name: "localVariable5", scope: !31, file: !3, line: 53, type: !39) 182 !39 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !40, size: 64) 183 !40 = !DIDerivedType(tag: DW_TAG_typedef, name: "thirdStruct_", file: !3, line: 37, baseType: !41) 184 !41 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "thirdStruct", file: !3, line: 32, size: 256, elements: !42) 185 !42 = !{!43, !51, !53} 186 !43 = !DIDerivedType(tag: DW_TAG_member, name: "elem6", scope: !41, file: !3, line: 34, baseType: !44, size: 128) 187 !44 = !DIDerivedType(tag: DW_TAG_typedef, name: "fourthStruct_", file: !3, line: 30, baseType: !45) 188 !45 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "fourthStruct", file: !3, line: 25, size: 128, elements: !46) 189 !46 = !{!47, !48, !49, !50} 190 !47 = !DIDerivedType(tag: DW_TAG_member, name: "elem7", scope: !45, file: !3, line: 26, baseType: !14, size: 32) 191 !48 = !DIDerivedType(tag: DW_TAG_member, name: "elem8", scope: !45, file: !3, line: 27, baseType: !14, size: 32, offset: 32) 192 !49 = !DIDerivedType(tag: DW_TAG_member, name: "elem9", scope: !45, file: !3, line: 28, baseType: !34, size: 32, offset: 64) 193 !50 = !DIDerivedType(tag: DW_TAG_member, name: "elem10", scope: !45, file: !3, line: 29, baseType: !34, size: 32, offset: 96) 194 !51 = !DIDerivedType(tag: DW_TAG_member, name: "elem11", scope: !41, file: !3, line: 35, baseType: !52, size: 64, offset: 128) 195 !52 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !6, size: 64) 196 !53 = !DIDerivedType(tag: DW_TAG_member, name: "elem12", scope: !41, file: !3, line: 36, baseType: !26, size: 64, offset: 192) 197 !54 = !DILocalVariable(name: "variable5", scope: !31, file: !3, line: 54, type: !34) 198 !55 = !DILocalVariable(name: "variable6", scope: !31, file: !3, line: 55, type: !56) 199 !56 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !11, size: 64) 200 !57 = !DILocation(line: 50, column: 34, scope: !31) 201 !58 = !DILocation(line: 51, column: 34, scope: !31) 202 203... 204--- 205name: foo 206alignment: 4 207exposesReturnsTwice: false 208legalized: false 209regBankSelected: false 210selected: false 211tracksRegLiveness: true 212registers: 213liveins: 214 - { reg: '$edi', virtual-reg: '' } 215 - { reg: '$esi', virtual-reg: '' } 216frameInfo: 217 isFrameAddressTaken: false 218 isReturnAddressTaken: false 219 hasStackMap: false 220 hasPatchPoint: false 221 stackSize: 56 222 offsetAdjustment: -8 223 maxAlignment: 4 224 adjustsStack: true 225 hasCalls: true 226 stackProtector: '' 227 maxCallFrameSize: 0 228 hasOpaqueSPAdjustment: false 229 hasVAStart: false 230 hasMustTailInVarArgFunc: false 231 savePoint: '' 232 restorePoint: '' 233fixedStack: 234 - { id: 0, type: spill-slot, offset: -56, size: 8, alignment: 8, stack-id: 0, 235 callee-saved-register: '$rbx', callee-saved-restored: true } 236 - { id: 1, type: spill-slot, offset: -48, size: 8, alignment: 16, stack-id: 0, 237 callee-saved-register: '$r12', callee-saved-restored: true } 238 - { id: 2, type: spill-slot, offset: -40, size: 8, alignment: 8, stack-id: 0, 239 callee-saved-register: '$r13', callee-saved-restored: true } 240 - { id: 3, type: spill-slot, offset: -32, size: 8, alignment: 16, stack-id: 0, 241 callee-saved-register: '$r14', callee-saved-restored: true } 242 - { id: 4, type: spill-slot, offset: -24, size: 8, alignment: 8, stack-id: 0, 243 callee-saved-register: '$r15', callee-saved-restored: true } 244 - { id: 5, type: spill-slot, offset: -16, size: 8, alignment: 16, stack-id: 0, 245 callee-saved-register: '', callee-saved-restored: true } 246stack: 247 - { id: 0, name: '', type: spill-slot, offset: -64, size: 4, alignment: 4, 248 stack-id: 0, callee-saved-register: '', callee-saved-restored: true, 249 debug-info-variable: '', debug-info-expression: '', 250 debug-info-location: '' } 251 - { id: 1, name: '', type: spill-slot, offset: -60, size: 4, alignment: 4, 252 stack-id: 0, callee-saved-register: '', callee-saved-restored: true, 253 debug-info-variable: '', debug-info-expression: '', 254 debug-info-location: '' } 255constants: 256body: | 257 bb.0.entry: 258 successors: %bb.9(0x30000000), %bb.1(0x50000000) 259 liveins: $edi, $esi, $r15, $r14, $r13, $r12, $rbx 260 261 frame-setup PUSH64r killed $rbp, implicit-def $rsp, implicit $rsp 262 CFI_INSTRUCTION def_cfa_offset 16 263 CFI_INSTRUCTION offset $rbp, -16 264 $rbp = frame-setup MOV64rr $rsp 265 CFI_INSTRUCTION def_cfa_register $rbp 266 frame-setup PUSH64r killed $r15, implicit-def $rsp, implicit $rsp 267 frame-setup PUSH64r killed $r14, implicit-def $rsp, implicit $rsp 268 frame-setup PUSH64r killed $r13, implicit-def $rsp, implicit $rsp 269 frame-setup PUSH64r killed $r12, implicit-def $rsp, implicit $rsp 270 frame-setup PUSH64r killed $rbx, implicit-def $rsp, implicit $rsp 271 frame-setup PUSH64r undef $rax, implicit-def $rsp, implicit $rsp 272 CFI_INSTRUCTION offset $rbx, -56 273 CFI_INSTRUCTION offset $r12, -48 274 CFI_INSTRUCTION offset $r13, -40 275 CFI_INSTRUCTION offset $r14, -32 276 CFI_INSTRUCTION offset $r15, -24 277 DBG_VALUE debug-use $edi, debug-use $noreg, !36, !DIExpression(), debug-location !57 278 DBG_VALUE debug-use $esi, debug-use $noreg, !37, !DIExpression(), debug-location !58 279 $ebx = MOV32rr $esi 280 DBG_VALUE debug-use $ebx, debug-use $noreg, !37, !DIExpression(), debug-location !58 281 $r15d = MOV32rr $edi 282 DBG_VALUE debug-use $r15d, debug-use $noreg, !36, !DIExpression(), debug-location !57 283 renamable $r14 = MOV64ri -9223372036854775808 284 $edi = MOV32rr $ebx 285 CALL64pcrel32 @func1, csr_64, implicit $rsp, implicit $ssp, implicit $edi, implicit-def $rsp, implicit-def $ssp, implicit-def $rax 286 $r13 = MOV64rr $rax 287 renamable $ecx = XOR32rr undef $ecx, undef $ecx, implicit-def dead $eflags 288 renamable $r13 = AND64rr killed renamable $r13, renamable $r14, implicit-def $eflags 289 JE_1 %bb.9, implicit $eflags 290 291 bb.1.if.end: 292 successors: %bb.2(0x30000000), %bb.3(0x50000000) 293 liveins: $ebx, $r13, $r14, $r15d 294 295 ; The instruction below is inserted additionally in order to test part of the code. 296 $r12d = MOV32rr $r15d 297 MOV32mr $rbp, 1, $noreg, -48, $noreg, renamable $r15d :: (store 4 into %stack.0) 298 ; The instruction below is altered ($r15d -> $r12d) in order to test part of the code. 299 ; The original instruction "$edi = MOV32rr killed $r15d 300 $edi = MOV32rr killed $r12d 301 MOV32mr $rbp, 1, $noreg, -44, $noreg, renamable $ebx :: (store 4 into %stack.1) 302 $esi = MOV32rr killed $ebx 303 CALL64pcrel32 @func2, csr_64, implicit $rsp, implicit $ssp, implicit $edi, implicit $esi, implicit-def $rsp, implicit-def $ssp, implicit-def $rax 304 $r12 = MOV64rr $rax 305 $r15 = MOV64rr $r12 306 renamable $r15 = AND64ri8 killed renamable $r15, -123, implicit-def $eflags 307 JE_1 %bb.2, implicit $eflags 308 309 bb.3.private.exit: 310 successors: %bb.9(0x30000000), %bb.4(0x50000000) 311 liveins: $r12, $r13, $r14, $r15 312 313 renamable $r14 = OR64rr killed renamable $r14, renamable $r12, implicit-def dead $eflags 314 $esi = XOR32rr undef $esi, undef $esi, implicit-def dead $eflags 315 dead $edx = MOV32ri 16, implicit-def $rdx 316 $rdi = MOV64rr killed $r14 317 CALL64pcrel32 @memset, csr_64, implicit $rsp, implicit $ssp, implicit $rdi, implicit $esi, implicit $rdx, implicit-def $rsp, implicit-def $ssp, implicit-def dead $rax 318 $rdi = MOV64rr $r12 319 CALL64pcrel32 @func4, csr_64, implicit $rsp, implicit $ssp, implicit $rdi, implicit-def $rsp, implicit-def $ssp, implicit-def $eax 320 renamable $ecx = MOV32ri 1 321 TEST32rr killed renamable $eax, renamable $eax, implicit-def $eflags 322 JE_1 %bb.9, implicit $eflags 323 324 bb.4.if.then8: 325 successors: %bb.8(0x30000000), %bb.5(0x50000000) 326 liveins: $r12, $r13, $r15 327 328 $esi = XOR32rr undef $esi, undef $esi, implicit-def dead $eflags 329 $rdi = MOV64rr $r12 330 CALL64pcrel32 @func5, csr_64, implicit $rsp, implicit $ssp, implicit $rdi, implicit $esi, implicit-def $rsp, implicit-def $ssp 331 renamable $rax = MOV64rm killed renamable $r13, 1, $noreg, 8, $noreg :: (load 8 from %ir.13) 332 TEST64rr renamable $rax, renamable $rax, implicit-def $eflags 333 JE_1 %bb.8, implicit $eflags 334 335 bb.5.land.lhs.true: 336 successors: %bb.6(0x30000000), %bb.7(0x50000000) 337 liveins: $rax, $r12, $r15 338 339 CMP32mi8 renamable $r15, 1, $noreg, 0, $noreg, 0, implicit-def $eflags :: (load 4 from %ir.tot_perf2, align 8) 340 JNE_1 %bb.7, implicit $eflags 341 342 bb.6.lor.lhs.false: 343 successors: %bb.8(0x30000000), %bb.7(0x50000000) 344 liveins: $rax, $r12, $r15 345 346 CMP32mi8 killed renamable $r15, 1, $noreg, 4, $noreg, 0, implicit-def $eflags :: (load 4 from %ir.tot_bw) 347 JE_1 %bb.8, implicit $eflags 348 349 bb.7.if.then14: 350 successors: %bb.8(0x80000000) 351 liveins: $rax, $r12 352 353 renamable $rdx = MOV64rm killed renamable $rax, 1, $noreg, 8, $noreg :: (load 8 from %ir.20) 354 $rdi = MOV64rr killed $r12 355 $esi = MOV32rm $rbp, 1, $noreg, -44, $noreg :: (load 4 from %stack.1) 356 CALL64pcrel32 @func6, csr_64, implicit $rsp, implicit $ssp, implicit $rdi, implicit $esi, implicit $rdx, implicit-def $rsp, implicit-def $ssp 357 358 bb.8.cleanup: 359 successors: %bb.9(0x80000000) 360 361 renamable $ecx = MOV32ri 1 362 JMP_1 %bb.9 363 364 bb.2.if.then3: 365 successors: %bb.9(0x80000000) 366 liveins: $r13 367 368 renamable $edi = MOV32rm renamable $r13, 1, $noreg, 0, $noreg :: (load 4 from %ir.variableLocal11, align 8) 369 renamable $esi = MOVZX32rm8 killed renamable $r13, 1, $noreg, 4, $noreg :: (load 1 from %ir.variableLocal2, align 4) 370 renamable $ecx = MOV32ri @.str, implicit-def $rcx 371 renamable $rcx = OR64ri32 killed renamable $rcx, -92238, implicit-def dead $eflags 372 $edx = MOV32ri 5 373 $r8d = MOV32rm $rbp, 1, $noreg, -48, $noreg :: (load 4 from %stack.0) 374 CALL64pcrel32 @func3, csr_64, implicit $rsp, implicit $ssp, implicit $edi, implicit $esi, implicit $edx, implicit $rcx, implicit $r8d, implicit-def $rsp, implicit-def $ssp 375 renamable $ecx = XOR32rr undef $ecx, undef $ecx, implicit-def dead $eflags 376 377 bb.9.cleanup: 378 liveins: $ecx 379 380 $eax = MOV32rr killed $ecx 381 $rsp = ADD64ri8 $rsp, 8, implicit-def dead $eflags 382 $rbx = POP64r implicit-def $rsp, implicit $rsp 383 $r12 = POP64r implicit-def $rsp, implicit $rsp 384 $r13 = POP64r implicit-def $rsp, implicit $rsp 385 $r14 = POP64r implicit-def $rsp, implicit $rsp 386 $r15 = POP64r implicit-def $rsp, implicit $rsp 387 $rbp = POP64r implicit-def $rsp, implicit $rsp 388 RETQ $eax 389 390... 391