This is an archive of the discontinued LLVM Phabricator instance.

Revert part of r310296 to make it really NFC for instrumentation PGO.
ClosedPublic

Authored by danielcdh on Aug 9 2017, 9:59 PM.

Details

Summary

Part of r310296 will disable PGOIndirectCallPromotion in ThinLTO backend if PGOOpt is None. However, as PGOOpt is not passed down to ThinLTO backend for instrumentation based PGO, that change would actually disable ICP entirely in ThinLTO backend, making it behave differently in instrumentation PGO mode. This change reverts that change, and only disable ICP there when it is SamplePGO.

Event Timeline

danielcdh created this revision.Aug 9 2017, 9:59 PM
davidxl accepted this revision.Aug 9 2017, 10:08 PM

lgtm

This revision is now accepted and ready to land.Aug 9 2017, 10:08 PM
danielcdh closed this revision.Aug 9 2017, 10:11 PM