Include a shadow of the original CFG edges in the edge bundle graph.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 22 Dec 2010 22:01:28 +0000 (22:01 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 22 Dec 2010 22:01:28 +0000 (22:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122444 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SplitKit.cpp

index 38c94698799e2c6a147139556414163e5ae455bb..d0971fea482700a5dc1986f05af0cc0060f4a191 100644 (file)
@@ -75,6 +75,10 @@ raw_ostream &llvm::WriteGraph(raw_ostream &O, const EdgeBundles &G,
     O << "\t\"BB#" << BB << "\" [ shape=box ]\n"
       << '\t' << G.getBundle(BB, false) << " -> \"BB#" << BB << "\"\n"
       << "\t\"BB#" << BB << "\" -> " << G.getBundle(BB, true) << '\n';
+    for (MachineBasicBlock::const_succ_iterator SI = I->succ_begin(),
+           SE = I->succ_end(); SI != SE; ++SI)
+      O << "\t\"BB#" << BB << "\" -> \"BB#" << (*SI)->getNumber()
+        << "\" [ color=lightgray ]\n";
   }
   O << "}\n";
   return O;