Mercurial > hg > graal-jvmci-8
diff src/share/vm/opto/loopTransform.cpp @ 3367: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 | f879eafd5835 |
children | 38569792a45a |
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.