Use color coding to distinguish nodes:
- Entry nodes have bold border
- Scalar (non-loopy) code is milk white
- Outer loops are light yellow
- Innermost loops are light blue
-print-loops needs to be enabled to provide BinaryLoopInfo.
Examples:
Paths
| Differential D126248
[BOLT][NFC] Use colors in CFG dumps ClosedPublic Authored by Amir on May 23 2022, 3:36 PM.
Details
Summary
Diff Detail
Event TimelineAmir added a parent revision: D126237: [BOLT][NFC] Print block instructions in dumpGraph as part of node label. Comment Actions LGTM Should we add a description somewhere (perhaps in the option that enables graph dumps) the information that -print-loops can be enabled for color outputs? This revision is now accepted and ready to land.May 24 2022, 3:07 PM Comment Actions Add a note in DumpDotAll help message about using -print-loops to enable Comment Actions
Done Amir removed a parent revision: D126237: [BOLT][NFC] Print block instructions in dumpGraph as part of node label.Jun 2 2022, 12:13 AM Closed by commit rG6333e5dde987: [BOLT][NFC] Use colors in CFG dumps (authored by Amir). · Explain WhyJun 2 2022, 12:27 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 433670 bolt/lib/Core/BinaryFunction.cpp
bolt/lib/Rewrite/RewriteInstance.cpp
|