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: callback 8 ; CHECK: ret 9 10 %struct.btCompoundLeafCallback = type { i32, i32 } 11 12 declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone 13 14 define void @test() unnamed_addr uwtable ssp align 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) 24 %m = getelementptr inbounds %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 38 !0 = metadata !{i32 786449, metadata !6, i32 4, metadata !"clang version 3.3 (trunk 168984) (llvm/trunk 168983)", i1 true, metadata !"", i32 0, metadata !2, metadata !7, null, null, null, metadata !""} ; [ DW_TAG_compile_unit ] [MultiSource/Benchmarks/Bullet/MultiSource/Benchmarks/Bullet/btCompoundCollisionAlgorithm.cpp] [DW_LANG_C_plus_plus] 39 !2 = metadata !{null} 40 !3 = metadata !{i32 786688, null, metadata !"callback", null, i32 214, metadata !4, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [callback] [line 214] 41 !4 = metadata !{i32 786451, metadata !6, null, metadata !"btCompoundLeafCallback", i32 90, i64 512, i64 64, i32 0, i32 0, null, null, i32 0, null, null} ; [ DW_TAG_structure_type ] [btCompoundLeafCallback] [line 90, size 512, align 64, offset 0] [from ] 42 !5 = metadata !{i32 786473, metadata !6} ; [ DW_TAG_file_type ] 43 !6 = metadata !{metadata !"MultiSource/Benchmarks/Bullet/btCompoundCollisionAlgorithm.cpp", metadata !"MultiSource/Benchmarks/Bullet"} 44 !7 = metadata !{i32 0} 45