Integrated: 8324775: C2 SuperWord: refactor visited sets
Emanuel Peter
epeter at openjdk.org
Mon Jan 29 08:49:41 UTC 2024
On Fri, 26 Jan 2024 16:53:46 GMT, Emanuel Peter <epeter at openjdk.org> wrote:
> Subtask of https://github.com/openjdk/jdk/pull/16620
>
> Currently, the visited set is a "global" set that is reused all through SuperWord:
> `_visited`, `_post_visited`, and also `_stk`.
>
> This makes other refactorings difficult. I am refactoring all related code to make the visited sets local, with use of ResourceMark.
>
> I am also refactoring the `independent` queries: from using recursive function calls to iterative. This is necessary, unless we want to pass the visited set around into the recursive calls (I think not!)
>
> At the same time, I wanted the code of `find_dependence` to become easier, and closer to `independent`, hence I re-defined it to `mutually_independent`, and had to slightly adapt also its usages.
This pull request has now been integrated.
Changeset: 6ad78ca8
Author: Emanuel Peter <epeter at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/6ad78ca8a5956d4ada6fd0bedebadddb5f6a0edc
Stats: 129 lines in 2 files changed: 27 ins; 55 del; 47 mod
8324775: C2 SuperWord: refactor visited sets
Reviewed-by: kvn, chagedorn
-------------
PR: https://git.openjdk.org/jdk/pull/17594
More information about the hotspot-compiler-dev
mailing list