Skip to content

Commit

Permalink
8310727: C2: *_of() methods in PhaseIterGVN should use uint for the n…
Browse files Browse the repository at this point in the history
…ode index

Reviewed-by: thartmann
  • Loading branch information
dlunde authored and TobiHartmann committed Oct 9, 2023
1 parent a57ae7e commit 7ff1938
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hotspot/share/opto/phaseX.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ class PhaseIterGVN : public PhaseGVN {
}

// Replace ith edge of "n" with "in"
void replace_input_of(Node* n, int i, Node* in) {
void replace_input_of(Node* n, uint i, Node* in) {
rehash_node_delayed(n);
n->set_req_X(i, in, this);
}
Expand All @@ -558,13 +558,13 @@ class PhaseIterGVN : public PhaseGVN {
}

// Delete ith edge of "n"
void delete_input_of(Node* n, int i) {
void delete_input_of(Node* n, uint i) {
rehash_node_delayed(n);
n->del_req(i);
}

// Delete precedence edge i of "n"
void delete_precedence_of(Node* n, int i) {
void delete_precedence_of(Node* n, uint i) {
rehash_node_delayed(n);
n->rm_prec(i);
}
Expand Down

1 comment on commit 7ff1938

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.