This is an archive of the discontinued LLVM Phabricator instance.

[GreedyRA ORE] Extract stats in RAGreedyStats struct. NFC.
ClosedPublic

Authored by skatkov on Apr 6 2021, 9:14 PM.

Details

Summary

Combine all collected stats into separate struct RAGreedyStats
with add and report methods.

The motivation is to extend the number of statistics to capture and instead of
adding new parameters, just combine all of them into one structure.
Additionally I plan to use report from different places in future to report data
for function as well.

Diff Detail

Event Timeline

skatkov created this revision.Apr 6 2021, 9:14 PM
skatkov requested review of this revision.Apr 6 2021, 9:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 6 2021, 9:14 PM
thegameg accepted this revision.Apr 6 2021, 9:44 PM
thegameg added a subscriber: thegameg.

LGTM. Doesn't seem like there are any tests testing this remark, maybe you can add one if you have something handy?

This revision is now accepted and ready to land.Apr 6 2021, 9:44 PM

LGTM. Doesn't seem like there are any tests testing this remark, maybe you can add one if you have something handy?

There are some tests
./CodeGen/AArch64/arm64-spill-remarks-treshold-hotness.ll
./CodeGen/AArch64/arm64-spill-remarks.ll

I'll probably add something like this.

LGTM. Doesn't seem like there are any tests testing this remark, maybe you can add one if you have something handy?

There are some tests
./CodeGen/AArch64/arm64-spill-remarks-treshold-hotness.ll
./CodeGen/AArch64/arm64-spill-remarks.ll

I'll probably add something like this.

Looks like I missed that! Should be fine as is then.

This revision was landed with ongoing or failed builds.Apr 8 2021, 12:37 AM
This revision was automatically updated to reflect the committed changes.