1; RUN: opt -passes=licm < %s -S | FileCheck %s 2; RUN: opt -aa-pipeline=basic-aa -passes='require<aa>,require<target-ir>,require<scalar-evolution>,require<opt-remark-emit>,loop-mssa(licm)' < %s -S | FileCheck %s 3 4; RUN: opt -passes=licm < %s -S --try-experimental-debuginfo-iterators | FileCheck %s 5 6define void @dgefa(i1 %arg) nounwind ssp { 7entry: 8 br label %for.body 9 10for.body: ; preds = %for.cond.backedge, %entry 11 br i1 %arg, label %if.then, label %for.cond.backedge, !dbg !11 12 13for.cond.backedge: ; preds = %for.body61, %for.body61.us, %for.body 14 br i1 %arg, label %for.end104, label %for.body, !dbg !15 15 16if.then: ; preds = %for.body 17 br i1 %arg, label %if.then27, label %if.end.if.end.split_crit_edge.critedge, !dbg !16 18 19if.then27: ; preds = %if.then 20; CHECK: #dbg_value 21 tail call void @llvm.dbg.value(metadata double undef, metadata !19, metadata !DIExpression()), !dbg !21 22 br label %for.body61.us 23 24if.end.if.end.split_crit_edge.critedge: ; preds = %if.then 25 br label %for.body61 26 27for.body61.us: ; preds = %for.body61.us, %if.then27 28 br i1 %arg, label %for.cond.backedge, label %for.body61.us, !dbg !23 29 30for.body61: ; preds = %for.body61, %if.end.if.end.split_crit_edge.critedge 31 br i1 %arg, label %for.cond.backedge, label %for.body61, !dbg !23 32 33for.end104: ; preds = %for.cond.backedge 34 ret void, !dbg !24 35} 36 37declare void @llvm.dbg.value(metadata, metadata, metadata) nounwind readnone 38 39!llvm.module.flags = !{!26} 40!llvm.dbg.cu = !{!2} 41 42!0 = distinct !DISubprogram(name: "idamax", line: 112, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !2, file: !25, scope: !1, type: !3) 43!1 = !DIFile(filename: "/Volumes/Lalgate/work/llvm/projects/llvm-test/SingleSource/Benchmarks/CoyoteBench/lpbench.c", directory: "/private/tmp") 44!2 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 2.9 (trunk 127169)", isOptimized: true, emissionKind: FullDebug, file: !25) 45!3 = !DISubroutineType(types: !4) 46!4 = !{!5} 47!5 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) 48!6 = distinct !DISubprogram(name: "dscal", line: 206, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !2, file: !25, scope: !1, type: !7) 49!7 = !DISubroutineType(types: !{null}) 50!9 = distinct !DISubprogram(name: "daxpy", line: 230, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !2, file: !25, scope: !1, type: !7) 51!10 = distinct !DISubprogram(name: "dgefa", line: 267, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !2, file: !25, scope: !1, type: !7) 52!11 = !DILocation(line: 281, column: 9, scope: !12) 53!12 = distinct !DILexicalBlock(line: 272, column: 5, file: !25, scope: !13) 54!13 = distinct !DILexicalBlock(line: 271, column: 5, file: !25, scope: !14) 55!14 = distinct !DILexicalBlock(line: 267, column: 1, file: !25, scope: !10) 56!15 = !DILocation(line: 271, column: 5, scope: !14) 57!16 = !DILocation(line: 284, column: 10, scope: !17) 58!17 = distinct !DILexicalBlock(line: 282, column: 9, file: !25, scope: !12) 59!18 = !{double undef} 60!19 = !DILocalVariable(name: "temp", line: 268, scope: !14, file: !1, type: !20) 61!20 = !DIBasicType(tag: DW_TAG_base_type, name: "double", size: 64, align: 64, encoding: DW_ATE_float) 62!21 = !DILocation(line: 286, column: 14, scope: !22) 63!22 = distinct !DILexicalBlock(line: 285, column: 13, file: !25, scope: !17) 64!23 = !DILocation(line: 296, column: 13, scope: !17) 65!24 = !DILocation(line: 313, column: 1, scope: !14) 66!25 = !DIFile(filename: "/Volumes/Lalgate/work/llvm/projects/llvm-test/SingleSource/Benchmarks/CoyoteBench/lpbench.c", directory: "/private/tmp") 67!26 = !{i32 1, !"Debug Info Version", i32 3} 68