1; Test that llvm-lto2 handles the -lto-sample-profile-file option 2; 3; RUN: opt -module-summary < %s -o %t.bc 4; RUN: llvm-lto2 run -o %t.out %t.bc -save-temps \ 5; RUN: -r %t.bc,foo,px -r %t.bc,bar,x \ 6; RUN: -lto-sample-profile-file=%S/Inputs/load-sample-prof.prof 7; RUN: llvm-dis %t.out.1.4.opt.bc -o - | FileCheck %s 8; 9; CHECK: !prof 10 11target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 12target triple = "x86_64-unknown-linux-gnu" 13 14define void @foo() local_unnamed_addr !dbg !7 { 15entry: 16 tail call void @bar(), !dbg !10 17 ret void, !dbg !11 18} 19 20declare void @bar() local_unnamed_addr 21 22!llvm.dbg.cu = !{!0} 23!llvm.module.flags = !{!3, !4, !5} 24!llvm.ident = !{!6} 25 26!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 6.0.0 ", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2) 27!1 = !DIFile(filename: "test.c", directory: "/tmp") 28!2 = !{} 29!3 = !{i32 2, !"Dwarf Version", i32 4} 30!4 = !{i32 2, !"Debug Info Version", i32 3} 31!5 = !{i32 1, !"wchar_size", i32 4} 32!6 = !{!"clang version 6.0.0 "} 33!7 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 3, type: !8, isLocal: false, isDefinition: true, scopeLine: 3, isOptimized: true, unit: !0, retainedNodes: !2) 34!8 = !DISubroutineType(types: !9) 35!9 = !{null} 36!10 = !DILocation(line: 4, column: 5, scope: !7) 37!11 = !DILocation(line: 5, column: 1, scope: !7) 38