This is an archive of the discontinued LLVM Phabricator instance.

[LTO,NFC] Skip generateParamAccessSummary when empty
ClosedPublic

Authored by vitalybuka on Aug 4 2020, 1:01 AM.

Details

Summary

addGlobalValueSummary can check newly added FunctionSummary
and set HasParamAccess to mark that generateParamAccessSummary
is needed.

Diff Detail

Event Timeline

vitalybuka created this revision.Aug 4 2020, 1:01 AM
vitalybuka requested review of this revision.Aug 4 2020, 1:01 AM
tejohnson accepted this revision.Aug 6 2020, 2:41 PM

lgtm with a possible change below.

llvm/include/llvm/IR/ModuleSummaryIndex.h
1292

Minor suggestion - since the common case is !HasParamAccess, I wonder if it would be a little bit more efficient to remove the check and simply HasParamAccess |= ... below.

This revision is now accepted and ready to land.Aug 6 2020, 2:41 PM
vitalybuka updated this revision to Diff 283789.Aug 6 2020, 6:52 PM
vitalybuka marked an inline comment as done.

remove if (!HasParamAccess)

This revision was landed with ongoing or failed builds.Aug 6 2020, 7:01 PM
This revision was automatically updated to reflect the committed changes.