This is an archive of the discontinued LLVM Phabricator instance.

[InlineCost] NFC - refactor the checks for different analyses to be a bit more localized to the code that uses those analyses.
ClosedPublic

Authored by chandlerc on Aug 14 2017, 1:50 PM.

Event Timeline

chandlerc created this revision.Aug 14 2017, 1:50 PM
eraman edited edge metadata.Aug 14 2017, 2:17 PM

LGTM

This is not strictly NFC since the entire hot/cold threshold update code used to be guarded by if (PSI) even though PSI is not needed for local hot/cold callsite updates, but practically all the callers within LLVM does pass a non-null PSI.

LGTM

Thanks!

This is not strictly NFC since the entire hot/cold threshold update code used to be guarded by if (PSI) even though PSI is not needed for local hot/cold callsite updates, but practically all the callers within LLVM does pass a non-null PSI.

Yeah, I'll rewrite the description to make more sense.

This is important as there is actually a test change required because it has BFI but not PSI and it makes a difference.

This revision was automatically updated to reflect the committed changes.