You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by va...@apache.org on 2007/04/13 11:48:51 UTC
svn commit: r528411 -
/harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/FlowGraph.cpp
Author: varlax
Date: Fri Apr 13 02:48:51 2007
New Revision: 528411
URL: http://svn.apache.org/viewvc?view=rev&rev=528411
Log:
Applied HARMONY-3635 [drlvm] FlowGraph::printDotFile(...) print wrong graph when graph has 2 or more entry nodes
Modified:
harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/FlowGraph.cpp
Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/FlowGraph.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/FlowGraph.cpp?view=diff&rev=528411&r1=528410&r2=528411
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/FlowGraph.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/FlowGraph.cpp Fri Apr 13 02:48:51 2007
@@ -1056,12 +1056,14 @@
Inst *first = (Inst*)node->getFirstInst();
assert(first->isLabel());
if (node->isBlockNode()) {
- if(node->getInDegree() == 0)
- cout << "ENTRY";
- else if(node->getOutDegree() == 1 && node->getOutEdges().front()->getTargetNode()->isExitNode())
+ if(node->getInDegree() == 0) {
+ cout << "ENTRY_";
+ ((LabelInst*)first)->printId(cout);
+ } else if(node->getOutDegree() == 1 && node->getOutEdges().front()->getTargetNode()->isExitNode()) {
cout << "RETURN";
- else
+ } else {
((LabelInst*)first)->printId(cout);
+ }
} else if (node->isDispatchNode()) {
if(node->getOutDegree() == 1 && node->getOutEdges().front()->getTargetNode()->isExitNode())
cout << "UNWIND";