8265914: Duplicated NotANode and not_a_node

Reviewed-by: thartmann
This commit is contained in:
Yi Yang 2021-04-27 13:00:08 +00:00 committed by Tobias Hartmann
parent 9481fad42f
commit fbfd4ea3ce
5 changed files with 22 additions and 36 deletions

View file

@ -287,13 +287,6 @@ void Compile::gvn_replace_by(Node* n, Node* nn) {
}
static inline bool not_a_node(const Node* n) {
if (n == NULL) return true;
if (((intptr_t)n & 1) != 0) return true; // uninitialized, etc.
if (*(address*)n == badAddress) return true; // kill by Node::destruct
return false;
}
// Identify all nodes that are reachable from below, useful.
// Use breadth-first pass that records state in a Unique_Node_List,
// recursive traversal is slower.