[JDK-8381472](https://bugs.openjdk.org/browse/JDK-8381472) added a new fast path for acmp that emits "unsafe" loads: https://github.com/openjdk/valhalla/blob/46dafa35ea274abed90c4c1475fbbff69bb14d6b/src/hotspot/share/opto/parse2.cpp#L2331-L2334
Although those loads are marked as unsafe themselves, they are still emitted even if `InlineUnsafeOps` is false. The assert in `Compile::flatten_alias_type` needs to be adjusted to account for this. Not adding a regression test because this easily reproduces with an existing test (in higher tiers). Thanks, Tobias --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - JDK-8383991 Changes: https://git.openjdk.org/valhalla/pull/2407/files Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2407&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8383991 Stats: 2 lines in 2 files changed: 1 ins; 0 del; 1 mod Patch: https://git.openjdk.org/valhalla/pull/2407.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2407/head:pull/2407 PR: https://git.openjdk.org/valhalla/pull/2407
