1 ; RUN: llc < %s -mtriple=x86_64-apple-macosx -enable-misched \ 2 ; RUN: -verify-machineinstrs | FileCheck %s 3 ; 4 ; Test RegisterPressure handling of DBG_VALUE. 5 ; 6 ; CHECK: %entry 7 ; CHECK: DEBUG_VALUE: test:callback 8 ; CHECK: ret 9 10 %struct.btCompoundLeafCallback = type { i32, i32 } 11 12 declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone 13 14 define void @test() unnamed_addr uwtable ssp align 2 !dbg !2 { 15 entry: 16 %callback = alloca %struct.btCompoundLeafCallback, align 8 17 br i1 undef, label %if.end, label %if.then 18 19 if.then: ; preds = %entry 20 unreachable 21 22 if.end: ; preds = %entry 23 call void @llvm.dbg.declare(metadata %struct.btCompoundLeafCallback* %callback, metadata !3, metadata !DIExpression()), !dbg !DILocation(scope: !2) 24 %m = getelementptr inbounds %struct.btCompoundLeafCallback, %struct.btCompoundLeafCallback* %callback, i64 0, i32 1 25 store i32 0, i32* undef, align 8 26 %cmp12447 = icmp sgt i32 undef, 0 27 br i1 %cmp12447, label %for.body.lr.ph, label %invoke.cont44 28 29 for.body.lr.ph: ; preds = %if.end 30 unreachable 31 32 invoke.cont44: ; preds = %if.end 33 ret void 34 } 35 36 !llvm.dbg.cu = !{!0} 37 !llvm.module.flags = !{!8} 38 39 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.3 (trunk 168984) (llvm/trunk 168983)", isOptimized: true, emissionKind: 0, file: !6, subprograms: !1) 40 !1 = !{!2} 41 !2 = distinct !DISubprogram(name: "test", isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: true, scopeLine: 1, file: !6, scope: !5, type: !7) 42 !3 = !DILocalVariable(name: "callback", line: 214, scope: !2, type: !4) 43 !4 = !DICompositeType(tag: DW_TAG_structure_type, name: "btCompoundLeafCallback", line: 90, size: 512, align: 64, file: !6) 44 !5 = !DIFile(filename: "MultiSource/Benchmarks/Bullet/btCompoundCollisionAlgorithm.cpp", directory: "MultiSource/Benchmarks/Bullet") 45 !6 = !DIFile(filename: "MultiSource/Benchmarks/Bullet/btCompoundCollisionAlgorithm.cpp", directory: "MultiSource/Benchmarks/Bullet") 46 !7 = !DISubroutineType(types: !9) 47 !8 = !{i32 1, !"Debug Info Version", i32 3} 48 !9 = !{null} 49