RFR: 8280541: remove self-recursion of ConnectionGraph::find_inst_mem()

Xin Liu xliu at openjdk.java.net
Mon Jan 31 19:31:14 UTC 2022


On Mon, 24 Jan 2022 22:57:15 GMT, Xin Liu <xliu at openjdk.org> wrote:

> This is a follow-up task of JDK-8276219.
> 
> ConnectionGraph::find_inst_mem() contains a self-recursion for MergeMemNode.
> It drills down into one input of MergeMemNode and tries to locate the memory node
> which has the exact alias_idx. Once it returns, the result won't change from
> recursion. Therefore, it's not necessary to use recursion in this case. We can
> reset the initial state of this function and respin.
> 
> We can use a collection to remember all MergeMem Nodes and update them after then. 
> 
> This patch also makes a cleanup in MergeMemNode::memory_at(). C is not in use in
> that function.

May I ping this?  It's really a simple change.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7204


More information about the hotspot-compiler-dev mailing list