harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r593035 - /harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/deadcodeeliminator.cpp
Date Thu, 08 Nov 2007 06:18:06 GMT
Author: varlax
Date: Wed Nov  7 22:18:06 2007
New Revision: 593035

URL: http://svn.apache.org/viewvc?rev=593035&view=rev
Log:
Applied HARMONY-4997 [drlvm][jit][opt] rept does not assume normal loop exit

Modified:
    harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/deadcodeeliminator.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/deadcodeeliminator.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/deadcodeeliminator.cpp?rev=593035&r1=593034&r2=593035&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/deadcodeeliminator.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/deadcodeeliminator.cpp Wed Nov 
7 22:18:06 2007
@@ -1090,6 +1090,7 @@
 
     if (Log::isLogEnabled(LogStream::DOTDUMP)) {
         OptPass::printDotFile(irManager, Log::getStageId(), "rept", "after_loop_tree");
+        OptPass::printHIR(irManager);
     }
 
     // Nodes containing essential PseudoThrow instructions
@@ -1181,11 +1182,12 @@
             }
         }
     }
-    assert(mbEssentialNode != NULL);
-    essentialNodes.setBit(mbEssentialNode->getId());
-    if (Log::isEnabled()) {
-        Log::out() << "Found essential PseudoThrow in node ID: "
-            << mbEssentialNode->getId() << std::endl;
+    if (mbEssentialNode != NULL) {
+        essentialNodes.setBit(mbEssentialNode->getId());
+        if (Log::isEnabled()) {
+            Log::out() << "Found essential PseudoThrow in node ID: "
+                << mbEssentialNode->getId() << std::endl;
+        }
     }
     return;
 }



Mime
View raw message