From eb22d38e270d1cbd946a3f028ab78f4c6289e98b Mon Sep 17 00:00:00 2001 From: Christian Hagedorn Date: Thu, 24 Oct 2024 12:54:03 +0200 Subject: [PATCH] small update --- src/hotspot/share/opto/loopTransform.cpp | 6 +++--- src/hotspot/share/opto/predicates.cpp | 2 +- src/hotspot/share/opto/predicates.hpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hotspot/share/opto/loopTransform.cpp b/src/hotspot/share/opto/loopTransform.cpp index 4d49bdb0f41a4..bd01c754a54cd 100644 --- a/src/hotspot/share/opto/loopTransform.cpp +++ b/src/hotspot/share/opto/loopTransform.cpp @@ -1988,9 +1988,9 @@ void PhaseIdealLoop::create_assertion_predicates_at_loop(CountedLoopNode* source PredicateIterator predicate_iterator(source_loop_entry); predicate_iterator.for_each(assertion_predicates_for_loop); if (assertion_predicates_for_loop.has_created_predicates()) { - IfTrueNode* last_created_node = assertion_predicates_for_loop.last_created_success_proj(); - _igvn.replace_input_of(target_outer_loop_head, LoopNode::EntryControl, last_created_node); - set_idom(target_outer_loop_head, last_created_node, dom_depth(target_outer_loop_head)); + IfTrueNode* last_created_predicate_success_proj = 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)); } } //------------------------------do_unroll-------------------------------------- diff --git a/src/hotspot/share/opto/predicates.cpp b/src/hotspot/share/opto/predicates.cpp index 084a5c91ff08a..768a8b5ea86a1 100644 --- a/src/hotspot/share/opto/predicates.cpp +++ b/src/hotspot/share/opto/predicates.cpp @@ -139,7 +139,7 @@ bool RuntimePredicate::is_predicate(Node* node, Deoptimization::DeoptReason deop } // Rewire any non-CFG nodes dependent on this Template Assertion Predicate (i.e. with a control input to this -// Template Assertion Predicate) to the 'target_predicate' based on the `data_in_loop_body` check. +// Template Assertion Predicate) to the 'target_predicate' based on the 'data_in_loop_body' check. void TemplateAssertionPredicate::rewire_loop_data_dependencies(IfTrueNode* target_predicate, const NodeInLoopBody& data_in_loop_body, PhaseIdealLoop* phase) const { diff --git a/src/hotspot/share/opto/predicates.hpp b/src/hotspot/share/opto/predicates.hpp index 93125f9c1bf25..e1263f33ace47 100644 --- a/src/hotspot/share/opto/predicates.hpp +++ b/src/hotspot/share/opto/predicates.hpp @@ -941,8 +941,8 @@ class NodeInOriginalLoopBody : public NodeInLoopBody { } }; -// Visitor to create Initialized Assertion Predicates at a target from Template Assertion Predicates from a source loop. -// This visitor can be used in combination with a PredicateIterator. +// Visitor to create Initialized Assertion Predicates at a target loop from Template Assertion Predicates from a source +// loop. This visitor can be used in combination with a PredicateIterator. class AssertionPredicatesForLoop : public PredicateVisitor { Node* const _init; Node* const _stride;