brintos

brintos / llvm-project-archived public Read only

0
0
Text · 24.3 KiB · e0417fb Raw
473 lines · plain
1# RUN: llc -run-pass=livedebugvalues -o - %s | FileCheck -check-prefix=GENERATE %s2# RUN: llc -run-pass=livedebugvalues -o - %s | FileCheck -check-prefix=TERMINATE %s3# 4# Check that spills are recognized in the Live Debug Values pass and that5# DBG_VALUE instructions are generated to keep track of spilled user6# variables.  7# In addition we check that the ranges of spilled debug values are properly8# extended.9#10# Test case generated from:11#12# extern void use (int);13# extern void set (int *, int *, int *);14# 15# int glob0, glob1, glob2, glob3, glob4, glob5;16# 17# void foo(int b0, int b1, int int0, int int1, int int2,18#          int int3, int int4)19# {20#   int inta = glob0;21#   int intb = glob1;22#   int intc = glob2;23#   int intd = glob3;24#   int inte = glob4;25#   int intf = glob5;26#   int intg;27# 28#   if (b0)29#     return;30# 31#   int0 += (int1 + int2 + int3) * int4;32#   use(intf);33#   use(inte);34# 35#   if (b1) {36#     set(&inte, &intf, &intg);37#     int0 = (int1 + int2 + int3) * int4;38#     inta = (intb*inte + intc*inte + intd) * inte;39#   }40#   int0 += int4 * inta;41#   use(int0);42# }43#44#45# Generated with 46# clang -g -O2 -S -emit-llvm -fno-omit-frame-pointer spill1.c47# llc -stop-after=funclet-layout < spill1.ll > spill1.mir                48#49# Make sure that we generated DBG_VALUE instructions for the spills50# GENERATE: ![[INT0:[0-9]+]] = !DILocalVariable(name: "int0",{{.*}})51# GENERATE: ![[INTB:[0-9]+]] = !DILocalVariable(name: "intb",{{.*}})52# GENERATE: ![[INTD:[0-9]+]] = !DILocalVariable(name: "intd",{{.*}})53#54# GENERATE:      bb.1.if.end:55# GENERATE:      MOV32mr $rbp, 1, $noreg, -48, $noreg, killed $edx :: (store (s32) 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 (s32) 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 (s32) into %stack.3)60# GENERATE-NEXT: DBG_VALUE $rbp, 0, ![[INTD]], !DIExpression(DW_OP_constu, 56, DW_OP_minus)61#62# Check that the spill locations that are valid at the end of bb.1.if.end are63# propagated to subsequent BBs.64#65# GENERATE:      bb.2.if.then4:66# GENERATE-NOT:  bb.3: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)69#70# GENERATE:      bb.3: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)74#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)79# 80# Check that the spill location rbp-48 (the variable int0) is not propagated 81# because int0 is redefined within the same basic block.82#83# TERMINATE:     bb.2.if.then4:84# TERMINATE-NOT: DBG_VALUE $rbp, -48,85--- |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"90  91  @glob0 = common local_unnamed_addr global i32 0, align 4, !dbg !092  @glob1 = common local_unnamed_addr global i32 0, align 4, !dbg !693  @glob2 = common local_unnamed_addr global i32 0, align 4, !dbg !994  @glob3 = common local_unnamed_addr global i32 0, align 4, !dbg !1195  @glob4 = common local_unnamed_addr global i32 0, align 4, !dbg !1396  @glob5 = common local_unnamed_addr global i32 0, align 4, !dbg !1597  98  ; Function Attrs: nounwind uwtable99  define void @foo(i32 %b0, i32 %b1, i32 %int0, i32 %int1, i32 %int2, i32 %int3, i32 %int4) local_unnamed_addr #0 !dbg !20 {100  entry:101    %inte = alloca i32, align 4102    %intf = alloca i32, align 4103    %intg = alloca i32, align 4104    tail call void @llvm.dbg.value(metadata i32 %b0, i64 0, metadata !24, metadata !38), !dbg !39105    tail call void @llvm.dbg.value(metadata i32 %b1, i64 0, metadata !25, metadata !38), !dbg !40106    tail call void @llvm.dbg.value(metadata i32 %int0, i64 0, metadata !26, metadata !38), !dbg !41107    tail call void @llvm.dbg.value(metadata i32 %int1, i64 0, metadata !27, metadata !38), !dbg !42108    tail call void @llvm.dbg.value(metadata i32 %int2, i64 0, metadata !28, metadata !38), !dbg !43109    tail call void @llvm.dbg.value(metadata i32 %int3, i64 0, metadata !29, metadata !38), !dbg !44110    tail call void @llvm.dbg.value(metadata i32 %int4, i64 0, metadata !30, metadata !38), !dbg !45111    %0 = load i32, ptr @glob0, align 4, !dbg !46, !tbaa !47112    tail call void @llvm.dbg.value(metadata i32 %0, i64 0, metadata !31, metadata !38), !dbg !51113    %1 = load i32, ptr @glob1, align 4, !dbg !52, !tbaa !47114    tail call void @llvm.dbg.value(metadata i32 %1, i64 0, metadata !32, metadata !38), !dbg !53115    %2 = load i32, ptr @glob2, align 4, !dbg !54, !tbaa !47116    tail call void @llvm.dbg.value(metadata i32 %2, i64 0, metadata !33, metadata !38), !dbg !55117    %3 = load i32, ptr @glob3, align 4, !dbg !56, !tbaa !47118    tail call void @llvm.dbg.value(metadata i32 %3, i64 0, metadata !34, metadata !38), !dbg !57119    %4 = bitcast ptr %inte to ptr, !dbg !58120    call void @llvm.lifetime.start(i64 4, ptr nonnull %4) #4, !dbg !58121    %5 = load i32, ptr @glob4, align 4, !dbg !59, !tbaa !47122    tail call void @llvm.dbg.value(metadata i32 %5, i64 0, metadata !35, metadata !38), !dbg !60123    tail call void @llvm.dbg.value(metadata i32 %5, i64 0, metadata !35, metadata !38), !dbg !60124    store i32 %5, ptr %inte, align 4, !dbg !60, !tbaa !47125    %6 = bitcast ptr %intf to ptr, !dbg !61126    call void @llvm.lifetime.start(i64 4, ptr nonnull %6) #4, !dbg !61127    %7 = load i32, ptr @glob5, align 4, !dbg !62, !tbaa !47128    tail call void @llvm.dbg.value(metadata i32 %7, i64 0, metadata !36, metadata !38), !dbg !63129    tail call void @llvm.dbg.value(metadata i32 %7, i64 0, metadata !36, metadata !38), !dbg !63130    store i32 %7, ptr %intf, align 4, !dbg !63, !tbaa !47131    %8 = bitcast ptr %intg to ptr, !dbg !64132    call void @llvm.lifetime.start(i64 4, ptr nonnull %8) #4, !dbg !64133    %tobool = icmp eq i32 %b0, 0, !dbg !65134    br i1 %tobool, label %if.end, label %cleanup, !dbg !67135  136  if.end:                                           ; preds = %entry137    %add = add nsw i32 %int2, %int1, !dbg !68138    %add1 = add nsw i32 %add, %int3, !dbg !69139    %mul = mul nsw i32 %add1, %int4, !dbg !70140    call void @llvm.dbg.value(metadata i32 %mul, i64 0, metadata !26, metadata !38), !dbg !41141    %add2 = add nsw i32 %mul, %int0, !dbg !71142    tail call void @llvm.dbg.value(metadata i32 %add2, i64 0, metadata !26, metadata !38), !dbg !41143    tail call void @use(i32 %7) #4, !dbg !72144    tail call void @use(i32 %5) #4, !dbg !73145    %tobool3 = icmp eq i32 %b1, 0, !dbg !74146    br i1 %tobool3, label %if.end13, label %if.then4, !dbg !76147  148  if.then4:                                         ; preds = %if.end149    tail call void @llvm.dbg.value(metadata ptr %inte, i64 0, metadata !35, metadata !77), !dbg !60150    tail call void @llvm.dbg.value(metadata ptr %intf, i64 0, metadata !36, metadata !77), !dbg !63151    tail call void @llvm.dbg.value(metadata ptr %intg, i64 0, metadata !37, metadata !77), !dbg !78152    call void @set(ptr nonnull %inte, ptr nonnull %intf, ptr nonnull %intg) #4, !dbg !79153    %9 = load i32, ptr %inte, align 4, !dbg !81, !tbaa !47154    call void @llvm.dbg.value(metadata i32 %9, i64 0, metadata !35, metadata !38), !dbg !60155    %mul833 = add i32 %2, %1, !dbg !82156    %add10 = mul i32 %9, %mul833, !dbg !82157    %add11 = add nsw i32 %add10, %3, !dbg !83158    %mul12 = mul nsw i32 %add11, %9, !dbg !84159    call void @llvm.dbg.value(metadata i32 %mul12, i64 0, metadata !31, metadata !38), !dbg !51160    br label %if.end13, !dbg !85161  162  if.end13:                                         ; preds = %if.then4, %if.end163    %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 !51166    call void @llvm.dbg.value(metadata i32 %int0.addr.0, i64 0, metadata !26, metadata !38), !dbg !41167    %mul14 = mul nsw i32 %inta.0, %int4, !dbg !86168    %add15 = add nsw i32 %int0.addr.0, %mul14, !dbg !87169    call void @llvm.dbg.value(metadata i32 %add15, i64 0, metadata !26, metadata !38), !dbg !41170    call void @use(i32 %add15) #4, !dbg !88171    br label %cleanup, !dbg !89172  173  cleanup:                                          ; preds = %if.end13, %entry174    %10 = bitcast ptr %intg to ptr175    %11 = bitcast ptr %intf to ptr176    %12 = bitcast ptr %inte to ptr177    call void @llvm.lifetime.end(i64 4, ptr nonnull %10) #4, !dbg !89178    call void @llvm.lifetime.end(i64 4, ptr nonnull %11) #4, !dbg !89179    call void @llvm.lifetime.end(i64 4, ptr nonnull %12) #4, !dbg !89180    ret void, !dbg !90181  }182  183  ; Function Attrs: argmemonly nounwind184  declare void @llvm.lifetime.start(i64, ptr nocapture) #1185  186  declare void @use(i32) local_unnamed_addr #2187  188  declare void @set(ptr, ptr, ptr) local_unnamed_addr #2189  190  ; Function Attrs: argmemonly nounwind191  declare void @llvm.lifetime.end(i64, ptr nocapture) #1192  193  ; Function Attrs: nounwind readnone194  declare void @llvm.dbg.value(metadata, i64, metadata, metadata) #3195  196  ; Function Attrs: nounwind197  declare void @llvm.stackprotector(ptr, ptr) #4198  199  attributes #0 = { nounwind uwtable "frame-pointer"="non-leaf" }200  attributes #1 = { argmemonly nounwind }201  attributes #2 = { "frame-pointer"="non-leaf" }202  attributes #3 = { nounwind readnone }203  attributes #4 = { nounwind }204  205  !llvm.dbg.cu = !{!2}206  !llvm.module.flags = !{!17, !18}207  !llvm.ident = !{!19}208  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")213  !4 = !{}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)301 302...303---304name:            foo305alignment:       16306exposesReturnsTwice: false307legalized:       false308regBankSelected: false309selected:        false310tracksRegLiveness: true311liveins:         312  - { reg: '$edi' }313  - { reg: '$esi' }314  - { reg: '$edx' }315  - { reg: '$ecx' }316  - { reg: '$r8d' }317  - { reg: '$r9d' }318calleeSavedRegisters: [ '$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' ]322frameInfo:       323  isFrameAddressTaken: false324  isReturnAddressTaken: false325  hasStackMap:     false326  hasPatchPoint:   false327  stackSize:       72328  offsetAdjustment: -24329  maxAlignment:    8330  adjustsStack:    true331  hasCalls:        true332  maxCallFrameSize: 0333  hasOpaqueSPAdjustment: false334  hasVAStart:      false335  hasMustTailInVarArgFunc: false336fixedStack:      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 }344stack:           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 }351body:             |352  bb.0.entry:353    successors: %bb.1.if.end(0x30000000), %bb.5.cleanup(0x50000000)354    liveins: $ecx, $edi, $edx, $esi, $r8d, $r9d, $r15, $r14, $r13, $r12, $rbx, $rbp355  356    frame-setup PUSH64r killed $rbp, implicit-def $rsp, implicit $rsp357    CFI_INSTRUCTION def_cfa_offset 16358    CFI_INSTRUCTION offset $rbp, -16359    $rbp = frame-setup MOV64rr $rsp360    CFI_INSTRUCTION def_cfa_register $rbp361    frame-setup PUSH64r killed $r15, implicit-def $rsp, implicit $rsp362    frame-setup PUSH64r killed $r14, implicit-def $rsp, implicit $rsp363    frame-setup PUSH64r killed $r13, implicit-def $rsp, implicit $rsp364    frame-setup PUSH64r killed $r12, implicit-def $rsp, implicit $rsp365    frame-setup PUSH64r killed $rbx, implicit-def $rsp, implicit $rsp366    $rsp = frame-setup SUB64ri8 $rsp, 24, implicit-def dead $eflags367    CFI_INSTRUCTION offset $rbx, -56368    CFI_INSTRUCTION offset $r12, -48369    CFI_INSTRUCTION offset $r13, -40370    CFI_INSTRUCTION offset $r14, -32371    CFI_INSTRUCTION offset $r15, -24372    DBG_VALUE $edi, _, !24, !38, debug-location !39373    DBG_VALUE $esi, _, !25, !38, debug-location !40374    DBG_VALUE $edx, _, !26, !38, debug-location !41375    DBG_VALUE $ecx, _, !27, !38, debug-location !42376    DBG_VALUE $r8d, _, !28, !38, debug-location !43377    DBG_VALUE $r9d, _, !29, !38, debug-location !44378    $r14d = MOV32rr $r8d379    DBG_VALUE $r14d, _, !28, !38, debug-location !43380    $r12d = MOV32rr $esi381    DBG_VALUE $r12d, _, !25, !38, debug-location !40382    $eax = MOV32rr $edi383    DBG_VALUE $eax, _, !24, !38, debug-location !39384    $r13d = MOV32rm $rip, 1, _, @glob0, _, debug-location !46 :: (dereferenceable load (s32) from @glob0, !tbaa !47)385    DBG_VALUE $r13d, _, !31, !38, debug-location !51386    $r8d = MOV32rm $rip, 1, _, @glob1, _, debug-location !52 :: (dereferenceable load (s32) from @glob1, !tbaa !47)387    DBG_VALUE $r8d, _, !32, !38, debug-location !53388    $r15d = MOV32rm $rip, 1, _, @glob2, _, debug-location !54 :: (dereferenceable load (s32) from @glob2, !tbaa !47)389    DBG_VALUE $r15d, _, !33, !38, debug-location !55390    $esi = MOV32rm $rip, 1, _, @glob3, _, debug-location !56 :: (dereferenceable load (s32) from @glob3, !tbaa !47)391    DBG_VALUE $esi, _, !34, !38, debug-location !57392    $ebx = MOV32rm $rip, 1, _, @glob4, _, debug-location !59 :: (dereferenceable load (s32) from @glob4, !tbaa !47)393    DBG_VALUE $ebx, _, !35, !38, debug-location !60394    MOV32mr $rbp, 1, _, -44, _, $ebx, debug-location !60 :: (store (s32) into %ir.inte, !tbaa !47)395    $edi = MOV32rm $rip, 1, _, @glob5, _, debug-location !62 :: (dereferenceable load (s32) from @glob5, !tbaa !47)396    DBG_VALUE $edi, _, !36, !38, debug-location !63397    MOV32mr $rbp, 1, _, -60, _, $edi, debug-location !63 :: (store (s32) into %ir.intf, !tbaa !47)398    TEST32rr killed $eax, $eax, implicit-def $eflags, debug-location !67399    JCC_1 %bb.5.cleanup, 5, implicit $eflags400  401  bb.1.if.end:402    successors: %bb.2(0x30000000), %bb.3.if.then4(0x50000000)403    liveins: $ebx, $ecx, $edi, $edx, $esi, $r8d, $r9d, $r12d, $r13d, $r14d, $r15d, $rbp404  405    MOV32mr $rbp, 1, _, -48, _, killed $edx :: (store (s32) into %stack.5)406    MOV32mr $rbp, 1, _, -52, _, killed $r8d :: (store (s32) into %stack.4)407    MOV32mr $rbp, 1, _, -56, _, killed $esi :: (store (s32) into %stack.3)408    DBG_VALUE _, _, !30, !38, debug-location !45409    $r14d = ADD32rr killed $r14d, killed $ecx, implicit-def dead $eflags, debug-location !68410    $r14d = ADD32rr killed $r14d, killed $r9d, implicit-def dead $eflags, debug-location !69411    $r14d = IMUL32rm killed $r14d, $rbp, 1, _, 16, _, implicit-def dead $eflags, debug-location !70 :: (load (s32) from %fixed-stack.6, align 16)412    DBG_VALUE $r14d, _, !26, !38, debug-location !41413    CALL64pcrel32 @use, csr_64, implicit $rsp, implicit $edi, implicit-def $rsp, debug-location !72414    $edi = MOV32rr killed $ebx, debug-location !73415    CALL64pcrel32 @use, csr_64, implicit $rsp, implicit $edi, implicit-def $rsp, debug-location !73416    TEST32rr killed $r12d, $r12d, implicit-def $eflags, debug-location !74417    JCC_1 %bb.2, 4, implicit $eflags418  419  bb.3.if.then4:420    successors: %bb.4.if.end13(0x80000000)421    liveins: $r14d, $r15d, $rbp422  423    $rdi = LEA64r $rbp, 1, _, -44, _424    DBG_VALUE $rbp, -44, !35, !38, debug-location !60425    $rsi = LEA64r $rbp, 1, _, -60, _426    DBG_VALUE $rbp, -60, !36, !38, debug-location !63427    $rdx = LEA64r $rbp, 1, _, -64, _428    DBG_VALUE $rbp, -64, !37, !38, debug-location !78429    CALL64pcrel32 @set, csr_64, implicit $rsp, implicit $rdi, implicit $rsi, implicit $rdx, implicit-def $rsp, debug-location !79430    $eax = MOV32rm $rbp, 1, _, -44, _, debug-location !81 :: (dereferenceable load (s32) from %ir.inte, !tbaa !47)431    DBG_VALUE $eax, _, !35, !38, debug-location !60432    $r15d = ADD32rm killed $r15d, $rbp, 1, _, -52, _, implicit-def dead $eflags, debug-location !82 :: (load (s32) from %stack.4)433    $r15d = IMUL32rr killed $r15d, $eax, implicit-def dead $eflags, debug-location !82434    $r15d = ADD32rm killed $r15d, $rbp, 1, _, -56, _, implicit-def dead $eflags, debug-location !83 :: (load (s32) from %stack.3)435    $r15d = IMUL32rr killed $r15d, killed $eax, implicit-def dead $eflags, debug-location !84436    DBG_VALUE $r15d, _, !31, !38, debug-location !51437    $r13d = MOV32rr killed $r15d438    DBG_VALUE $r13d, _, !31, !38, debug-location !51439    JMP_1 %bb.4.if.end13440  441  bb.2:442    successors: %bb.4.if.end13(0x80000000)443    liveins: $r13d, $r14d, $rbp444  445    $r14d = ADD32rm killed $r14d, $rbp, 1, _, -48, _, implicit-def dead $eflags, debug-location !71 :: (load (s32) from %stack.5)446    DBG_VALUE $r14d, _, !26, !38, debug-location !41447  448  bb.4.if.end13:449    successors: %bb.5.cleanup(0x80000000)450    liveins: $r13d, $r14d, $rbp451  452    DBG_VALUE $r14d, _, !26, !38, debug-location !41453    DBG_VALUE $r13d, _, !31, !38, debug-location !51454    $r13d = IMUL32rm killed $r13d, $rbp, 1, _, 16, _, implicit-def dead $eflags, debug-location !86 :: (load (s32) from %fixed-stack.6, align 16)455    $r13d = ADD32rr killed $r13d, killed $r14d, implicit-def dead $eflags, debug-location !87456    DBG_VALUE $r13d, _, !26, !38, debug-location !41457    $edi = MOV32rr killed $r13d, debug-location !88458    CALL64pcrel32 @use, csr_64, implicit $rsp, implicit $edi, implicit-def $rsp, debug-location !88459  460  bb.5.cleanup:461    liveins: $rbp462  463    $rsp = ADD64ri8 $rsp, 24, implicit-def dead $eflags, debug-location !90464    $rbx = POP64r implicit-def $rsp, implicit $rsp, debug-location !90465    $r12 = POP64r implicit-def $rsp, implicit $rsp, debug-location !90466    $r13 = POP64r implicit-def $rsp, implicit $rsp, debug-location !90467    $r14 = POP64r implicit-def $rsp, implicit $rsp, debug-location !90468    $r15 = POP64r implicit-def $rsp, implicit $rsp, debug-location !90469    $rbp = POP64r implicit-def $rsp, implicit $rsp, debug-location !90470    RET64 debug-location !90471 472...473