harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r483070 - /harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/hashvaluenumberer.cpp
Date Wed, 06 Dec 2006 13:29:58 GMT
Author: varlax
Date: Wed Dec  6 05:29:57 2006
New Revision: 483070

URL: http://svn.apache.org/viewvc?view=rev&rev=483070
Log:
Applied HARMONY-2396 [drlvm][jit] Jitrino fails to run SpecJBB2005 in -Xem:opt mode.
Tested on SUSE9.

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

Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/hashvaluenumberer.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/hashvaluenumberer.cpp?view=diff&rev=483070&r1=483069&r2=483070
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/hashvaluenumberer.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/hashvaluenumberer.cpp Wed Dec  6
05:29:57 2006
@@ -2534,12 +2534,12 @@
                 inst->setDst(OpndManager::getNullOpnd());
                 Inst* copy = NULL;
                 Opnd* srcOpnd = NULL;
-                if (optimizedOpcode == Op_TauUnsafe && instOpcode == Op_Cmp)
-                {  // optimizedInst is tauUnsafe so srcOpnd for copying must be 'false'
+                if (optimizedOpcode == Op_TauUnsafe && instOpcode == Op_Cmp){ 
+                    // optimizedInst is tauUnsafe so srcOpnd for copying must be 'false'
                     copy = irManager.getInstFactory().makeLdConst(dstOpnd,(int32)0);
-                }
-                else
-                {
+                } else  if (optimizedOpcode == Op_TauEdge) {
+                    copy = irManager.getInstFactory().makeLdConst(dstOpnd,(int32)1);
+                } else {
                     srcOpnd = optimizedInst->getDst();
                     //
                     // Note that sometimes dstOpnd could be a null operand because of



Mime
View raw message