diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-12-22 22:01:28 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-12-22 22:01:28 +0000 |
commit | 29836e6572f64d5fbb799b844ce31d18f1c9b771 (patch) | |
tree | a1c670bd58b3984b05c246138d5503315d039cb7 /llvm/lib/CodeGen/SplitKit.cpp | |
parent | a6cd2d821a2528d30a3936b445551c59876b96ea (diff) | |
download | llvm-29836e6572f64d5fbb799b844ce31d18f1c9b771.zip llvm-29836e6572f64d5fbb799b844ce31d18f1c9b771.tar.gz llvm-29836e6572f64d5fbb799b844ce31d18f1c9b771.tar.bz2 |
Include a shadow of the original CFG edges in the edge bundle graph.
llvm-svn: 122444
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SplitKit.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp index 38c94698..d0971fe 100644 --- a/llvm/lib/CodeGen/SplitKit.cpp +++ b/llvm/lib/CodeGen/SplitKit.cpp @@ -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; |