changeset 2464:3b1d58916d5f

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 e2a92dd0d3d2
children 69c94f488271
files src/share/vm/opto/loopTransform.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/loopTransform.cpp	Tue May 10 00:45:03 2011 -0700
+++ b/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.