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