1 ; RUN: opt -licm -basicaa < %s -S | FileCheck %s 2 3 define void @dgefa() nounwind ssp { 4 entry: 5 br label %for.body 6 7 for.body: ; preds = %for.cond.backedge, %entry 8 br i1 undef, label %if.then, label %for.cond.backedge, !dbg !11 9 10 for.cond.backedge: ; preds = %for.body61, %for.body61.us, %for.body 11 br i1 undef, label %for.end104, label %for.body, !dbg !15 12 13 if.then: ; preds = %for.body 14 br i1 undef, label %if.then27, label %if.end.if.end.split_crit_edge.critedge, !dbg !16 15 16 if.then27: ; preds = %if.then 17 ; CHECK: tail call void @llvm.dbg.value 18 tail call void @llvm.dbg.value(metadata !18, i64 0, metadata !19), !dbg !21 19 br label %for.body61.us 20 21 if.end.if.end.split_crit_edge.critedge: ; preds = %if.then 22 br label %for.body61 23 24 for.body61.us: ; preds = %for.body61.us, %if.then27 25 br i1 undef, label %for.cond.backedge, label %for.body61.us, !dbg !23 26 27 for.body61: ; preds = %for.body61, %if.end.if.end.split_crit_edge.critedge 28 br i1 undef, label %for.cond.backedge, label %for.body61, !dbg !23 29 30 for.end104: ; preds = %for.cond.backedge 31 ret void, !dbg !24 32 } 33 34 declare void @llvm.dbg.value(metadata, i64, metadata) nounwind readnone 35 36 !llvm.dbg.sp = !{!0, !6, !9, !10} 37 38 !0 = metadata !{i32 589870, i32 0, metadata !1, metadata !"idamax", metadata !"idamax", metadata !"", metadata !1, i32 112, metadata !3, i1 false, i1 true, i32 0, i32 0, i32 0, i32 256, i1 false, null} ; [ DW_TAG_subprogram ] 39 !1 = metadata !{i32 589865, metadata !"/Volumes/Lalgate/work/llvm/projects/llvm-test/SingleSource/Benchmarks/CoyoteBench/lpbench.c", metadata !"/private/tmp", metadata !2} ; [ DW_TAG_file_type ] 40 !2 = metadata !{i32 589841, i32 0, i32 12, metadata !"/Volumes/Lalgate/work/llvm/projects/llvm-test/SingleSource/Benchmarks/CoyoteBench/lpbench.c", metadata !"/private/tmp", metadata !"clang version 2.9 (trunk 127169)", i1 true, i1 false, metadata !"", i32 0} ; [ DW_TAG_compile_unit ] 41 !3 = metadata !{i32 589845, metadata !1, metadata !"", metadata !1, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !4, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] 42 !4 = metadata !{metadata !5} 43 !5 = metadata !{i32 589860, metadata !2, metadata !"int", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] 44 !6 = metadata !{i32 589870, i32 0, metadata !1, metadata !"dscal", metadata !"dscal", metadata !"", metadata !1, i32 206, metadata !7, i1 false, i1 true, i32 0, i32 0, i32 0, i32 256, i1 false, null} ; [ DW_TAG_subprogram ] 45 !7 = metadata !{i32 589845, metadata !1, metadata !"", metadata !1, i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !8, i32 0, i32 0} ; [ DW_TAG_subroutine_type ] 46 !8 = metadata !{null} 47 !9 = metadata !{i32 589870, i32 0, metadata !1, metadata !"daxpy", metadata !"daxpy", metadata !"", metadata !1, i32 230, metadata !7, i1 false, i1 true, i32 0, i32 0, i32 0, i32 256, i1 false, null} ; [ DW_TAG_subprogram ] 48 !10 = metadata !{i32 589870, i32 0, metadata !1, metadata !"dgefa", metadata !"dgefa", metadata !"", metadata !1, i32 267, metadata !7, i1 false, i1 true, i32 0, i32 0, i32 0, i32 256, i1 false, null} ; [ DW_TAG_subprogram ] 49 !11 = metadata !{i32 281, i32 9, metadata !12, null} 50 !12 = metadata !{i32 589835, metadata !13, i32 272, i32 5, metadata !1, i32 32} ; [ DW_TAG_lexical_block ] 51 !13 = metadata !{i32 589835, metadata !14, i32 271, i32 5, metadata !1, i32 31} ; [ DW_TAG_lexical_block ] 52 !14 = metadata !{i32 589835, metadata !10, i32 267, i32 1, metadata !1, i32 30} ; [ DW_TAG_lexical_block ] 53 !15 = metadata !{i32 271, i32 5, metadata !14, null} 54 !16 = metadata !{i32 284, i32 10, metadata !17, null} 55 !17 = metadata !{i32 589835, metadata !12, i32 282, i32 9, metadata !1, i32 33} ; [ DW_TAG_lexical_block ] 56 !18 = metadata !{double undef} 57 !19 = metadata !{i32 590080, metadata !14, metadata !"temp", metadata !1, i32 268, metadata !20, i32 0} ; [ DW_TAG_auto_variable ] 58 !20 = metadata !{i32 589860, metadata !2, metadata !"double", null, i32 0, i64 64, i64 64, i64 0, i32 0, i32 4} ; [ DW_TAG_base_type ] 59 !21 = metadata !{i32 286, i32 14, metadata !22, null} 60 !22 = metadata !{i32 589835, metadata !17, i32 285, i32 13, metadata !1, i32 34} ; [ DW_TAG_lexical_block ] 61 !23 = metadata !{i32 296, i32 13, metadata !17, null} 62 !24 = metadata !{i32 313, i32 1, metadata !14, null} 63