mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
4d59570b59
Summary: PartialProfileRatio approximately represents the ratio of the number of profile counters of the program being built to the number of profile counters in the partial sample profile. It is used to scale the working set size under the partial sample profile to reflect the size of the program being built and to improve the working set size heuristics. This is a split from D79831. Reviewers: davidxl Subscribers: eraman, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D79951
24 lines
711 B
LLVM
24 lines
711 B
LLVM
; RUN: llvm-profdata merge %S/Inputs/unreachable_bb.proftext -o %t.profdata
|
|
; RUN: opt < %s -pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE
|
|
; RUN: opt < %s -passes=pgo-instr-use -pgo-test-profile-file=%t.profdata -S | FileCheck %s --check-prefix=USE
|
|
|
|
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
define void @foo() {
|
|
entry:
|
|
call void @bar()
|
|
unreachable
|
|
return:
|
|
ret void
|
|
}
|
|
|
|
declare void @bar()
|
|
|
|
;USE: !0 = !{i32 1, !"ProfileSummary", !1}
|
|
;USE: !1 = !{!2, !3, !4, !5, !6, !7, !8, !9, !10, !11}
|
|
;USE: !2 = !{!"ProfileFormat", !"InstrProf"}
|
|
;USE: !3 = !{!"TotalCount", i64 0}
|
|
|
|
|