This is an archive of the discontinued LLVM Phabricator instance.

Clang change: Do not inline hot callsites for samplepgo in thinlto compile phase.
ClosedPublic

Authored by danielcdh on Mar 21 2017, 12:34 PM.

Details

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.

Event Timeline

danielcdh created this revision.Mar 21 2017, 12:34 PM
This revision is now accepted and ready to land.Mar 21 2017, 12:47 PM
danielcdh closed this revision.Mar 21 2017, 1:07 PM