RFR: 8341834: C2 compilation fails with "bad AD file" due to Replicate

Emanuel Peter epeter at openjdk.org
Wed Oct 23 12:10:04 UTC 2024


On Wed, 23 Oct 2024 08:30:15 GMT, Roland Westrelin <roland at openjdk.org> wrote:

> Superword creates a `Replicate` node at a `ConvL2I` node and uses the
> type of the result of the `ConvL2I` to pick the type of the
> `Replicate` instead of the type of the input to the `ConvL2I`.

I would add a comment in the VM code. The one-liner is a little dense to read.

Basically the issue is that `velt_basic_type(p0)` gives us the output type of `p0`. But what we need is the input type of `p0` - this is what we are replicating for.

Now I'm wondering if there are any other `p0` nodes that have diverging input/output type?

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

PR Comment: https://git.openjdk.org/jdk/pull/21660#issuecomment-2431911557


More information about the hotspot-compiler-dev mailing list