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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309964 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dehao Chen
2017-08-03 17:11:41 +00:00
parent 5c7ada7348
commit b65c3a989f
4 changed files with 86 additions and 36 deletions
@@ -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
}