This is an archive of the discontinued LLVM Phabricator instance.

[FuncSpec] Minor refactoring in statistics and debug messages.
ClosedPublic

Authored by labrinea on Mar 6 2023, 6:24 AM.

Details

Summary
  • Remove redundant variable NbFunctionsSpecialized as it is no longer used by the cost model.
  • Rename statistic NumFuncSpecialized to NumSpecsCreated as a better description (the old name confusingly implied number of functions we have created clones for).
  • Same for variable SpecializedFuncs. Renamed to Specializations.
  • Move debug message in the destructor (avoids repetition when MaxIters > 1).

Diff Detail

Event Timeline

labrinea created this revision.Mar 6 2023, 6:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 6 2023, 6:24 AM
labrinea requested review of this revision.Mar 6 2023, 6:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 6 2023, 6:24 AM
ChuanqiXu accepted this revision.Mar 6 2023, 5:56 PM

LGTM.

This revision is now accepted and ready to land.Mar 6 2023, 5:56 PM
This revision was landed with ongoing or failed builds.Mar 15 2023, 2:14 AM
This revision was automatically updated to reflect the committed changes.