brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 1bcee25 Raw
40 lines · plain
1; Test that llvm-lto2 handles the -lto-sample-profile-file option2;3; RUN: opt -module-summary < %s -o %t.bc4; 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.prof7; RUN: llvm-dis %t.out.1.4.opt.bc -o - | FileCheck %s8;9; CHECK: !prof10 11target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"12target triple = "x86_64-unknown-linux-gnu"13 14define void @foo() #0 !dbg !7 {15entry:16  tail call void @bar(), !dbg !1017  ret void, !dbg !1118}19 20declare void @bar() local_unnamed_addr21 22attributes #0 = {"local_unnamed_addr" "use-sample-profile"}23 24!llvm.dbg.cu = !{!0}25!llvm.module.flags = !{!3, !4, !5}26!llvm.ident = !{!6}27 28!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 6.0.0 ", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)29!1 = !DIFile(filename: "test.c", directory: "/tmp")30!2 = !{}31!3 = !{i32 2, !"Dwarf Version", i32 4}32!4 = !{i32 2, !"Debug Info Version", i32 3}33!5 = !{i32 1, !"wchar_size", i32 4}34!6 = !{!"clang version 6.0.0 "}35!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)36!8 = !DISubroutineType(types: !9)37!9 = !{null}38!10 = !DILocation(line: 4, column: 5, scope: !7)39!11 = !DILocation(line: 5, column: 1, scope: !7)40