Skip to content

Commit 1000b1c

Browse files
committed
8308884: [17u/11u] Backout JDK-8297951
This reverts commit de8c37a Reviewed-by: shade Backport-of: a93cf5f2b959ba97d5197fe027b81ec69de18382
1 parent 3613ae4 commit 1000b1c

File tree

2 files changed

+7
-83
lines changed

2 files changed

+7
-83
lines changed

src/hotspot/share/opto/loopPredicate.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,11 +1212,13 @@ bool PhaseIdealLoop::loop_predication_impl_helper(IdealLoopTree *loop, ProjNode*
12121212
upper_bound_iff->set_req(1, upper_bound_bol);
12131213
if (TraceLoopPredicate) tty->print_cr("upper bound check if: %s %d ", negate ? " negated" : "", lower_bound_iff->_idx);
12141214

1215-
// Fall through into rest of the cleanup code which will move any dependent nodes to the skeleton predicates of the
1216-
// upper bound test. We always need to create skeleton predicates in order to properly remove dead loops when later
1217-
// splitting the predicated loop into (unreachable) sub-loops (i.e. done by unrolling, peeling, pre/main/post etc.).
1218-
new_predicate_proj = insert_initial_skeleton_predicate(iff, loop, proj, predicate_proj, upper_bound_proj, scale,
1219-
offset, init, limit, stride, rng, overflow, reason);
1215+
// Fall through into rest of the clean up code which will move
1216+
// any dependent nodes onto the upper bound test.
1217+
new_predicate_proj = upper_bound_proj;
1218+
1219+
if (iff->is_RangeCheck()) {
1220+
new_predicate_proj = insert_initial_skeleton_predicate(iff, loop, proj, predicate_proj, upper_bound_proj, scale, offset, init, limit, stride, rng, overflow, reason);
1221+
}
12201222

12211223
#ifndef PRODUCT
12221224
if (TraceLoopOpts && !TraceLoopPredicate) {

test/hotspot/jtreg/compiler/loopopts/TestMissingSkeletonPredicateForIfNode.java

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)