RFR: 8346664: C2: Optimize mask check with constant offset [v4]

Matthias Ernst duke at openjdk.org
Thu Jan 23 09:06:10 UTC 2025


On Thu, 23 Jan 2025 07:50:58 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

>> Added a variant for adding consts using the same pattern as the other "NonConstMask" tests.
>
> Can you please point me to the tests where `mask_t` is a range, and not a constant?

The tests `addConstNonConstMask[Int,Long]` (https://github.com/openjdk/jdk/pull/22856/files#diff-2c6beb2b7bcb76601adb439471e786963c6e0d5cb6db132381f64e10df5819daR207), copied from the existing *NonConstMask* tests exercise this.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/22856#discussion_r1926598493


More information about the hotspot-compiler-dev mailing list