From d8ddf918a7b1e8a247811400056a533c75e37f30 Mon Sep 17 00:00:00 2001 From: Christian Hagedorn Date: Mon, 28 Oct 2024 14:41:43 +0100 Subject: [PATCH] Update src/hotspot/share/opto/loopTransform.cpp Co-authored-by: Emanuel Peter --- src/hotspot/share/opto/loopTransform.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hotspot/share/opto/loopTransform.cpp b/src/hotspot/share/opto/loopTransform.cpp index c12805b666767..e1da36cddcbf8 100644 --- a/src/hotspot/share/opto/loopTransform.cpp +++ b/src/hotspot/share/opto/loopTransform.cpp @@ -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));