You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by mf...@apache.org on 2007/11/20 09:31:40 UTC

svn commit: r596567 - /harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/helper_inliner.cpp

Author: mfursov
Date: Tue Nov 20 00:31:39 2007
New Revision: 596567

URL: http://svn.apache.org/viewvc?rev=596567&view=rev
Log:
[drlvm][jit] making 'hotness_percent' value for magic helpers inclusive for inlining

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

Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/helper_inliner.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/helper_inliner.cpp?rev=596567&r1=596566&r2=596567&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/helper_inliner.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/optimizer/helper_inliner.cpp Tue Nov 20 00:31:39 2007
@@ -179,7 +179,7 @@
                     continue;
                 }
                 HelperConfig* config = iconf->second;
-                if (!config->doInlining || config->hotnessPercentToInline >= nodePercent) {
+                if (!config->doInlining || nodePercent < config->hotnessPercentToInline) {
                     continue;
                 }
                 MethodDesc* md = HelperInliner::findHelperMethod(cc->getVMCompilationInterface(), helperId);