[PATCH] D126237: [BOLT][NFC] Print block instructions in dumpGraph as part of node label

Amir Ayupov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 23 13:23:35 PDT 2022


Amir added inline comments.


================
Comment at: bolt/lib/Core/BinaryFunction.cpp:3058
 void BinaryFunction::dumpGraph(raw_ostream &OS) const {
-  OS << "strict digraph \"" << getPrintName() << "\" {\n";
   uint64_t Offset = Address;
----------------
`strict` is a property that a graph can't have two edges between two nodes.
BOLT has a pass to remove such edges but we still want to display graphs before this pass properly.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126237/new/

https://reviews.llvm.org/D126237



More information about the llvm-commits mailing list