harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r528411 - /harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/FlowGraph.cpp
Date Fri, 13 Apr 2007 09:48:51 GMT
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";



Mime
View raw message