harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r472239 - /incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32CodeLayoutBottomUp.cpp
Date Tue, 07 Nov 2006 20:38:29 GMT
Author: gshimansky
Date: Tue Nov  7 12:38:28 2006
New Revision: 472239

URL: http://svn.apache.org/viewvc?view=rev&rev=472239
Log:
Applied HARMONY-1873 std::sort crash in jitrino code generator

Tests passed on gentoo linux


Modified:
    incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32CodeLayoutBottomUp.cpp

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32CodeLayoutBottomUp.cpp
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32CodeLayoutBottomUp.cpp?view=diff&rev=472239&r1=472238&r2=472239
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32CodeLayoutBottomUp.cpp
(original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32CodeLayoutBottomUp.cpp
Tue Nov  7 12:38:28 2006
@@ -45,7 +45,7 @@
     bool operator() (const Edge* e1, const Edge* e2) const { //true -> e1 is first
         double v1 = getEdgeExecCount(e1);
         double v2 = getEdgeExecCount(e2);
-        return   v1 > v2 ? true : (v1 < v2 ? false: e1 < e2);
+        return   v1 > v2;
     }
     static double getEdgeExecCount(const Edge* e) { 
         return e->getSourceNode()->getExecCount() * e->getEdgeProb();



Mime
View raw message