Integrated: 8308660: C2 compilation hits 'node must be dead' assert

Roland Westrelin roland at openjdk.org
Tue Mar 19 08:00:27 UTC 2024


On Thu, 14 Mar 2024 14:12:09 GMT, Roland Westrelin <roland at openjdk.org> wrote:

> In `IfNode::fold_compares_helper()`, `adjusted_val` is:
> 
> 
> (SubI (AddI top constant) 0)
> 
> 
> which is then transformed to the `top` node. The code, next, tries to
> destroy the `adjusted_val` node i.e. the `top` node. That results in
> the assert failure. Given We're trying to fold 2 ifs in a dying part
> of the graph, the fix is straightforward: test `adjusted_val` for top
> and bail out from the transformation if that's the case.

This pull request has now been integrated.

Changeset: 053ff76e
Author:    Roland Westrelin <roland at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/053ff76e14046f796f6e10a9cb2ede1f1ae22ed6
Stats:     73 lines in 2 files changed: 73 ins; 0 del; 0 mod

8308660: C2 compilation hits 'node must be dead' assert

Reviewed-by: chagedorn, kvn

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

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


More information about the hotspot-compiler-dev mailing list