changeset 9634:985153f94e98

7043552: regression after 7042327 Summary: Generate Opaque2 node only during first unroll. Reviewed-by: never
author kvn
date Tue, 10 May 2011 12:57:21 -0700
parents 92a7a2841a16
children f668c715d4aa
files hotspot/src/share/vm/opto/loopTransform.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/src/share/vm/opto/loopTransform.cpp	Tue May 10 00:45:03 2011 -0700
+++ b/hotspot/src/share/vm/opto/loopTransform.cpp	Tue May 10 12:57:21 2011 -0700
@@ -1230,7 +1230,7 @@
         set_ctrl(new_limit, C->root());
       } else {
         // Limit is not constant.
-        {
+        if (loop_head->unrolled_count() == 1) { // only for first unroll
           // Separate limit by Opaque node in case it is an incremented
           // variable from previous loop to avoid using pre-incremented
           // value which could increase register pressure.