The problem, here, is that, when a `Proj` is created for a late inlining call and transformed, it is replaced by a `Proj` for a dominating call. As a consequence, the code tries to clear an already cleared flag.
Beyond the fix for the crash here, 8375694 (that added that code) expects a single return projection but there can be several with the scalarized calling convention. I filed 8387131 to investigate if the change from 8375694 needs to be reworked. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - more - fix & test - Revert "8387054: [lworld] BACKOUT JDK-8375694 C2: Dead loop constructed with CastPP in late inlining" Changes: https://git.openjdk.org/valhalla/pull/2575/files Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2575&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8386999 Stats: 194 lines in 5 files changed: 193 ins; 1 del; 0 mod Patch: https://git.openjdk.org/valhalla/pull/2575.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2575/head:pull/2575 PR: https://git.openjdk.org/valhalla/pull/2575
