1 ; RUN: llc < %s -mtriple=x86_64-apple-macosx -enable-misched \ 2 ; RUN: -verify-machineinstrs | FileCheck %s 3 ; 4 ; Test LiveInterval update handling of DBG_VALUE. 5 ; rdar://12777252. 6 ; 7 ; CHECK: %entry 8 ; CHECK: DEBUG_VALUE: hg 9 ; CHECK: je 10 11 %struct.node.0.27 = type { i16, double, [3 x double], i32, i32 } 12 %struct.hgstruct.2.29 = type { %struct.bnode.1.28*, [3 x double], double, [3 x double] } 13 %struct.bnode.1.28 = type { i16, double, [3 x double], i32, i32, [3 x double], [3 x double], [3 x double], double, %struct.bnode.1.28*, %struct.bnode.1.28* } 14 15 declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone 16 17 define signext i16 @subdivp(%struct.node.0.27* nocapture %p, double %dsq, double %tolsq, %struct.hgstruct.2.29* nocapture byval align 8 %hg) nounwind uwtable readonly ssp { 18 entry: 19 call void @llvm.dbg.declare(metadata !{%struct.hgstruct.2.29* %hg}, metadata !4) 20 %type = getelementptr inbounds %struct.node.0.27* %p, i64 0, i32 0 21 %0 = load i16* %type, align 2, !tbaa !8 22 %cmp = icmp eq i16 %0, 1 23 br i1 %cmp, label %return, label %for.cond.preheader 24 25 for.cond.preheader: ; preds = %entry 26 %arrayidx6.1 = getelementptr inbounds %struct.hgstruct.2.29* %hg, i64 0, i32 1, i64 1 27 %cmp22 = fcmp olt double 0.000000e+00, %dsq 28 %conv24 = zext i1 %cmp22 to i16 29 br label %return 30 31 return: ; preds = %for.cond.preheader, %entry 32 %retval.0 = phi i16 [ %conv24, %for.cond.preheader ], [ 0, %entry ] 33 ret i16 %retval.0 34 } 35 36 declare void @llvm.dbg.value(metadata, i64, metadata) nounwind readnone 37 38 !llvm.dbg.cu = !{!0} 39 40 !0 = metadata !{i32 786449, i32 0, i32 12, metadata !"MultiSource/Benchmarks/Olden/bh/newbh.c", metadata !"MultiSource/Benchmarks/Olden/bh", metadata !"clang version 3.3 (trunk 168918) (llvm/trunk 168920)", i1 true, i1 true, metadata !"", i32 0, metadata !1, metadata !1, metadata !1, metadata !3} ; [ DW_TAG_compile_unit ] [MultiSource/Benchmarks/Olden/bh/newbh.c] [DW_LANG_C99] 41 !1 = metadata !{metadata !2} 42 !2 = metadata !{i32 0} 43 !3 = metadata !{null} 44 !4 = metadata !{i32 786689, null, metadata !"hg", metadata !5, i32 67109589, metadata !6, i32 0, i32 0} ; [ DW_TAG_arg_variable ] [hg] [line 725] 45 !5 = metadata !{i32 786473, metadata !11} ; [ DW_TAG_file_type ] 46 !6 = metadata !{i32 786454, null, metadata !"hgstruct", metadata !5, i32 492, i64 0, i64 0, i64 0, i32 0, metadata !7} ; [ DW_TAG_typedef ] [hgstruct] [line 492, size 0, align 0, offset 0] [from ] 47 !7 = metadata !{i32 786451, null, metadata !"", metadata !5, i32 487, i64 512, i64 64, i32 0, i32 0, null, null, i32 0, i32 0, i32 0} ; [ DW_TAG_structure_type ] [line 487, size 512, align 64, offset 0] [from ] 48 !8 = metadata !{metadata !"short", metadata !9} 49 !9 = metadata !{metadata !"omnipotent char", metadata !10} 50 !10 = metadata !{metadata !"Simple C/C++ TBAA"} 51 !11 = metadata !{metadata !"MultiSource/Benchmarks/Olden/bh/newbh.c", metadata !"MultiSource/Benchmarks/Olden/bh"} 52