Skip to content

Commit

Permalink
Update src/hotspot/share/opto/loopTransform.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Emanuel Peter <emanuel.peter@oracle.com>
  • Loading branch information
chhagedorn and eme64 authored Oct 28, 2024
1 parent 79a5913 commit d8ddf91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hotspot/share/opto/loopTransform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1982,12 +1982,12 @@ void PhaseIdealLoop::create_assertion_predicates_at_loop(CountedLoopNode* source
Node* stride = target_loop_head->stride();
LoopNode* target_outer_loop_head = target_loop_head->skip_strip_mined();
Node* target_loop_entry = target_outer_loop_head->in(LoopNode::EntryControl);
CreateAssertionPredicatesVisitor create_assertion_predicates_for_loop(init, stride, target_loop_entry, this,
CreateAssertionPredicatesVisitor create_assertion_predicates_visitor(init, stride, target_loop_entry, this,
_node_in_loop_body);
Node* source_loop_entry = source_loop_head->skip_strip_mined()->in(LoopNode::EntryControl);
PredicateIterator predicate_iterator(source_loop_entry);
predicate_iterator.for_each(create_assertion_predicates_for_loop);
if (create_assertion_predicates_for_loop.has_created_predicates()) {
predicate_iterator.for_each(create_assertion_predicates_visitor);
if (create_assertion_predicates_visitor.has_created_predicates()) {
IfTrueNode* last_created_predicate_success_proj = create_assertion_predicates_for_loop.last_created_success_proj();
_igvn.replace_input_of(target_outer_loop_head, LoopNode::EntryControl, last_created_predicate_success_proj);
set_idom(target_outer_loop_head, last_created_predicate_success_proj, dom_depth(target_outer_loop_head));
Expand Down

0 comments on commit d8ddf91

Please sign in to comment.