Integrated: 8373513: C2: Move ProjNode::other_if_proj() to IfProjNode

Christian Hagedorn chagedorn at openjdk.org
Wed Dec 17 13:41:25 UTC 2025


On Fri, 12 Dec 2025 09:48:28 GMT, Christian Hagedorn <chagedorn at openjdk.org> wrote:

> This is a simple clean-up patch which moves `ProjNode::other_if_proj()` to `IfProjNode` and update its uses. It only makes sense to call `other_if_proj()` on actual `IfProjNodes`.
> 
> It also required to update more types from `ProjNode` to `IfProjNode` which is more type-safe and preciser. While touching the methods, I've also added some `const`/`static` where appropriate.
> 
> Thanks,
> Christian

This pull request has now been integrated.

Changeset: 9862f8f0
Author:    Christian Hagedorn <chagedorn at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/9862f8f0d351448803f8930333d5a7286e6c3565
Stats:     57 lines in 8 files changed: 6 ins; 8 del; 43 mod

8373513: C2: Move ProjNode::other_if_proj() to IfProjNode

Reviewed-by: epeter, roland

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

PR: https://git.openjdk.org/jdk/pull/28785


More information about the hotspot-compiler-dev mailing list