src/share/vm/opto/coalesce.cpp

changeset 1108
fbc12e71c476
parent 1040
98cb887364d3
child 1279
bd02caa94611
     1.1 --- a/src/share/vm/opto/coalesce.cpp	Thu Mar 26 14:39:39 2009 -0700
     1.2 +++ b/src/share/vm/opto/coalesce.cpp	Thu Mar 26 15:04:55 2009 -0700
     1.3 @@ -473,7 +473,7 @@
     1.4          } // End of is two-adr
     1.5  
     1.6          // Insert a copy at a debug use for a lrg which has high frequency
     1.7 -        if( (b->_freq < OPTO_DEBUG_SPLIT_FREQ) && n->is_MachSafePoint() ) {
     1.8 +        if( b->_freq < OPTO_DEBUG_SPLIT_FREQ || b->is_uncommon(_phc._cfg._bbs) ) {
     1.9            // Walk the debug inputs to the node and check for lrg freq
    1.10            JVMState* jvms = n->jvms();
    1.11            uint debug_start = jvms ? jvms->debug_start() : 999999;
    1.12 @@ -487,7 +487,7 @@
    1.13              LRG &lrg = lrgs(nidx);
    1.14  
    1.15              // If this lrg has a high frequency use/def
    1.16 -            if( lrg._maxfreq >= OPTO_LRG_HIGH_FREQ ) {
    1.17 +            if( lrg._maxfreq >= _phc.high_frequency_lrg() ) {
    1.18                // If the live range is also live out of this block (like it
    1.19                // would be for a fast/slow idiom), the normal spill mechanism
    1.20                // does an excellent job.  If it is not live out of this block

mercurial