aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SplitKit.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-22 22:01:28 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-22 22:01:28 +0000
commit29836e6572f64d5fbb799b844ce31d18f1c9b771 (patch)
treea1c670bd58b3984b05c246138d5503315d039cb7 /llvm/lib/CodeGen/SplitKit.cpp
parenta6cd2d821a2528d30a3936b445551c59876b96ea (diff)
downloadllvm-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.cpp4
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;