RFR: 8349361: C2: RShiftL should support all applicable transformations that RShiftI does [v9]

Roland Westrelin roland at openjdk.org
Thu Feb 27 16:57:30 UTC 2025


On Tue, 25 Feb 2025 12:25:46 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

>> The transformation only happens if the amounts we shift left and right are the same. So if they are random, the transformation won't apply most of the time and, rarely, it will (because they will turn out to be the same). I'm not sure how to write an IR test then.
>
> You would not have to assert anything about the IR, just do value verification in that case.

Added in new commit. Is that what you had in mind?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23438#discussion_r1973985047


More information about the hotspot-compiler-dev mailing list