--- old/src/share/vm/opto/node.cpp 2021-04-28 19:35:15.976424056 +0800 +++ new/src/share/vm/opto/node.cpp 2021-04-28 19:35:15.854419259 +0800 @@ -1432,12 +1432,6 @@ return false; } -//------------------------------Ideal_DU_postCCP------------------------------- -// Idealize graph, using DU info. Must clone result into new-space -Node *Node::Ideal_DU_postCCP( PhaseCCP * ) { - return NULL; // Default to no change -} - //------------------------------hash------------------------------------------- // Hash function over Nodes. uint Node::hash() const { @@ -2126,6 +2120,14 @@ return found; } +void Node::ensure_control_or_add_prec(Node* c) { + if (in(0) == NULL) { + set_req(0, c); + } else if (in(0) != c) { + add_prec(c); + } +} + //============================================================================= //------------------------------yank------------------------------------------- // Find and remove