This is an archive of the discontinued LLVM Phabricator instance.

[NFC][LICM] Minor improvements to debug output
ClosedPublic

Authored by xiaoqing_wu on Dec 18 2020, 8:49 PM.

Details

Summary

Added a utility function in Value class to print block name and use block labels for unnamed blocks.
Changed LICM to call this function in its debug output.

Diff Detail

Event Timeline

xiaoqing_wu created this revision.Dec 18 2020, 8:49 PM
xiaoqing_wu requested review of this revision.Dec 18 2020, 8:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 18 2020, 8:49 PM

Remve "\ No newline at end of file" at the end of the file.

Remove trailing space

This seems like a useful utility to add to BasicBlock itself if it doesn't exit? (e.g. getNonEmptyName or getNameOrAsOperand).

xiaoqing_wu added a reviewer: asbirlea.

Created a utility function in Value class to print block name and use block labels for unnamed blocks. Thanks Alina for the suggestion.

asbirlea accepted this revision.Dec 23 2020, 4:49 PM

Thanks!

This revision is now accepted and ready to land.Dec 23 2020, 4:49 PM
xiaoqing_wu edited the summary of this revision. (Show Details)Jan 11 2021, 2:39 PM
This revision was automatically updated to reflect the committed changes.