Hi, as discussed here, https://github.com/openjdk/jdk/pull/31122#discussion_r3456766597
I think there's a bug here. Although this issue occurs on RISC-V, we can see that this spill was automatically inserted by RA; we didn't perform any operations manually. And maybe the reason of a spill move [c_rarg5|L] [stack:10|L] inserted by RA is probably because the registers are under a lot of pressure at this stage. I created a new issue to track https://bugs.openjdk.org/browse/JDK-8387252, and I'll try to reproduce this bug on other architectures. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - 8387252: [lworld] LoadFlattenedArrayStub may not consider the spill inserted by RA Changes: https://git.openjdk.org/valhalla/pull/2579/files Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2579&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8387252 Stats: 10 lines in 1 file changed: 7 ins; 0 del; 3 mod Patch: https://git.openjdk.org/valhalla/pull/2579.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2579/head:pull/2579 PR: https://git.openjdk.org/valhalla/pull/2579
