Clang change: Do not inline hot callsites for samplepgo in thinlto compile phase.
Summary: Because SamplePGO passes will be invoked twice in ThinLTO build: once at compile phase, the other at backend. We want to make sure the IR at the 2nd phase matches the hot part in pro file, thus we do not want to inline hot callsites in the first phase. Reviewers: tejohnson, eraman Reviewed By: tejohnson Subscribers: mehdi_amini, cfe-commits, Prazek Differential Revision: https://reviews.llvm.org/D31202 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@298429 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/CodeGen/BackendUtil.cpp 6 additions, 1 deletionlib/CodeGen/BackendUtil.cpp
- test/CodeGen/Inputs/pgo-sample-thinlto-summary.prof 2 additions, 0 deletionstest/CodeGen/Inputs/pgo-sample-thinlto-summary.prof
- test/CodeGen/pgo-sample-thinlto-summary.c 19 additions, 0 deletionstest/CodeGen/pgo-sample-thinlto-summary.c
Loading
Please register or sign in to comment