hotspot/src/share/vm/opto/superword.cpp
changeset 34162 16b54851eaf6
parent 33469 30f4811eded0
child 34168 dbdc6907b55d
--- a/hotspot/src/share/vm/opto/superword.cpp	Mon Nov 09 13:27:18 2015 +0000
+++ b/hotspot/src/share/vm/opto/superword.cpp	Mon Nov 09 11:26:41 2015 -0800
@@ -2247,7 +2247,10 @@
         NOT_PRODUCT(if (TraceSuperWordLoopUnrollAnalysis) tty->print_cr("vector loop(unroll=%d, len=%d)\n", max_vlen, max_vlen_in_bytes*BitsPerByte));
         // For atomic unrolled loops which are vector mapped, instigate more unrolling.
         cl->set_notpassed_slp();
-        C->set_major_progress();
+        // if vector resources are limited, do not allow additional unrolling
+        if (FLOATPRESSURE > 8) {
+          C->set_major_progress();
+        }
         cl->mark_do_unroll_only();
       }
     }