harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfur...@apache.org
Subject svn commit: r647565 - /harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/HLOAPIMagics.cpp
Date Sun, 13 Apr 2008 12:59:31 GMT
Author: mfursov
Date: Sun Apr 13 05:59:28 2008
New Revision: 647565

URL: http://svn.apache.org/viewvc?rev=647565&view=rev
Log:
Fix for HARMONY-5708 [drlvm][jit][opt] degradation on SpecJBB2005 fixed

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

Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/HLOAPIMagics.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/HLOAPIMagics.cpp?rev=647565&r1=647564&r2=647565&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/HLOAPIMagics.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/HLOAPIMagics.cpp Sun Apr 13 05:59:28
2008
@@ -232,7 +232,9 @@
     Opnd* tauTypesChecked = builder->genTauSafe();
 
     // Choosing direction
-    builder->appendInst(instFactory.makeBranch(Cmp_GT,intTag,dstPos,srcPos,reverseCopying));
+    Opnd * dstIsGreater = builder->genCmp(intType,intTag,Cmp_GT,diff,zero);
+    Opnd * reverseCopy = builder->genAnd(intType,sameArrays,dstIsGreater);
+    builder->appendInst(instFactory.makeBranch(Cmp_GT,intTag,reverseCopy,zero,reverseCopying));
 
     // Direct Copying
     builder->genFallthroughNode();



Mime
View raw message