Skip to content

Commit

Permalink
swap parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
chhagedorn committed Oct 30, 2024
1 parent fb3b578 commit fa878f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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 @@ -1534,7 +1534,7 @@ void PhaseIdealLoop::insert_pre_post_loops(IdealLoopTree *loop, Node_List &old_n
assert(post_head->in(1)->is_IfProj(), "must be zero-trip guard If node projection of the post loop");
DEBUG_ONLY(ensure_zero_trip_guard_proj(outer_main_head->in(LoopNode::EntryControl), true);)
if (UseLoopPredicate) {
initialize_assertion_predicates_for_main_loop(main_head, pre_head, first_node_index_in_pre_loop_body, old_new);
initialize_assertion_predicates_for_main_loop(pre_head, main_head, first_node_index_in_pre_loop_body, old_new);
}

// Step B4: Shorten the pre-loop to run only 1 iteration (for now).
Expand Down Expand Up @@ -1835,8 +1835,8 @@ void PhaseIdealLoop::initialize_assertion_predicates_for_peeled_loop(CountedLoop

// Source Loop: Cloned - pre_loop_head
// Target Loop: Original - main_loop_head
void PhaseIdealLoop::initialize_assertion_predicates_for_main_loop(CountedLoopNode* main_loop_head,
CountedLoopNode* pre_loop_head,
void PhaseIdealLoop::initialize_assertion_predicates_for_main_loop(CountedLoopNode* pre_loop_head,
CountedLoopNode* main_loop_head,
const uint first_node_index_in_cloned_loop_body,
const Node_List& old_new) {
const NodeInOriginalLoopBody node_in_original_loop_body(first_node_index_in_cloned_loop_body, old_new);
Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/share/opto/loopnode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -953,8 +953,8 @@ class PhaseIdealLoop : public PhaseTransform {
CountedLoopNode* remaining_loop_head,
uint first_node_index_in_cloned_loop_body,
const Node_List& old_new);
void initialize_assertion_predicates_for_main_loop(CountedLoopNode* main_loop_head,
CountedLoopNode* pre_loop_head,
void initialize_assertion_predicates_for_main_loop(CountedLoopNode* pre_loop_head,
CountedLoopNode* main_loop_head,
uint first_node_index_in_cloned_loop_body,
const Node_List& old_new);
void initialize_assertion_predicates_for_post_loop(CountedLoopNode* main_loop_head, CountedLoopNode* post_loop_head,
Expand Down

0 comments on commit fa878f3

Please sign in to comment.