On Wed, 13 May 2026 07:53:47 GMT, Roland Westrelin <[email protected]> wrote:

> During loop unswitching `set_flat_array_check_inputs()` merges all
> flat array checks into single new `FlatArrayCheck` node. That code
> doesn't work if a `FlatArrayCheck` node has more than one
> `ArrayOrKlass` input. (that is it's the result of a previous pass of
> loop unswitching).
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: de6aff4f
Author:    Roland Westrelin <[email protected]>
URL:       
https://git.openjdk.org/valhalla/commit/de6aff4ffe3344bfb886fa27385e432016bbbeef
Stats:     114 lines in 2 files changed: 110 ins; 1 del; 3 mod

8384364: [lworld] C2: assert(cloned_flat_array_check->req() == 3) failed: 
unexpected number of inputs for FlatArrayCheck

Reviewed-by: thartmann

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

PR: https://git.openjdk.org/valhalla/pull/2430

Reply via email to