This is an archive of the discontinued LLVM Phabricator instance.

[SelectOptimize] Add some debug logging. NFC
ClosedPublic

Authored by dmgreen on Nov 16 2022, 2:26 AM.

Details

Summary

This is some quick debug messages for the SelectOptimize pass, adding some information for the costs that are measured from getInstructionCost calls, and re-using the existing optimization remarks to print some information about if transforms were performed or not.

Diff Detail

Event Timeline

dmgreen created this revision.Nov 16 2022, 2:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 16 2022, 2:26 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
dmgreen requested review of this revision.Nov 16 2022, 2:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 16 2022, 2:26 AM
apostolakis accepted this revision.Nov 16 2022, 8:02 AM
This revision is now accepted and ready to land.Nov 16 2022, 8:02 AM

Thanks.

I've added one extra quick debug message for showing which select the base heuristic is currently analyzing at, to show which the Opt remark relates to. With that I'll commit this now, it has seemed useful.

This revision was landed with ongoing or failed builds.Nov 22 2022, 5:48 AM
This revision was automatically updated to reflect the committed changes.