Skip to content

Commit

Permalink
small update
Browse files Browse the repository at this point in the history
  • Loading branch information
chhagedorn committed Oct 24, 2024
1 parent 7fe4ea0 commit eb22d38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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 @@ -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--------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/opto/predicates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/share/opto/predicates.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eb22d38

Please sign in to comment.