mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-31 15:53:41 +00:00
8253586: C2: Clean up unused PhaseIterGVN::init_worklist()
Remove unused method PhaseIterGVN::init_worklist(Node *). Reviewed-by: thartmann, chagedorn, neliasso
This commit is contained in:
parent
0b83fc0150
commit
dcde95ba0d
@ -975,29 +975,6 @@ PhaseIterGVN::PhaseIterGVN( PhaseGVN *gvn ) : PhaseGVN(gvn),
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize worklist for each node.
|
||||
*/
|
||||
void PhaseIterGVN::init_worklist(Node* first) {
|
||||
Unique_Node_List to_process;
|
||||
to_process.push(first);
|
||||
|
||||
while (to_process.size() > 0) {
|
||||
Node* n = to_process.pop();
|
||||
if (!_worklist.member(n)) {
|
||||
_worklist.push(n);
|
||||
|
||||
uint cnt = n->req();
|
||||
for(uint i = 0; i < cnt; i++) {
|
||||
Node* m = n->in(i);
|
||||
if (m != NULL) {
|
||||
to_process.push(m);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef PRODUCT
|
||||
void PhaseIterGVN::verify_step(Node* n) {
|
||||
if (VerifyIterativeGVN) {
|
||||
|
||||
@ -458,9 +458,6 @@ private:
|
||||
|
||||
protected:
|
||||
|
||||
// Warm up hash table, type table and initial worklist
|
||||
void init_worklist( Node *a_root );
|
||||
|
||||
virtual const Type* saturate(const Type* new_type, const Type* old_type,
|
||||
const Type* limit_type) const;
|
||||
// Usually returns new_type. Returns old_type if new_type is only a slight
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user