Do not want to use BFI to get profile count for sample pgo

Summary: For SamplePGO, we already record the callsite count in the call instruction itself. So we do not want to use BFI to get profile count as it is less accurate.

Reviewers: tejohnson, davidxl, eraman

Reviewed By: eraman

Subscribers: sanjoy, llvm-commits, mehdi_amini

Differential Revision: https://reviews.llvm.org/D36025

llvm-svn: 309964
This commit is contained in:
Dehao Chen
2017-08-03 17:11:41 +00:00
parent 99d0ab38bc
commit f58df39529
4 changed files with 86 additions and 36 deletions

View File

@@ -0,0 +1,31 @@
; ModuleID = 'thinlto-function-summary-callgraph-profile-summary2.ll'
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @hot1() #1 {
ret void
}
define void @hot2() #1 {
ret void
}
define void @hot3() #1 {
ret void
}
define void @cold1() #1 {
ret void
}
define void @cold2() #1 {
ret void
}
define void @cold3() #1 {
ret void
}
define void @none1() #1 {
ret void
}
define void @none2() #1 {
ret void
}
define void @none3() #1 {
ret void
}