Integrated: 8369435: C2: transform (LShiftX (SubX con0 a), con1) into (SubX con0<<con1 (LShiftX a con1))
Roland Westrelin
roland at openjdk.org
Thu Oct 30 10:37:58 UTC 2025
On Thu, 16 Oct 2025 09:36:03 GMT, Roland Westrelin <roland at openjdk.org> wrote:
> We already transform:
>
> (LShiftX (AddX a con0), con1) into (AddX (LShiftX a con1) con0<<con1)
>
> THis is a variant with SubX. I found that this helps RCE.
This pull request has now been integrated.
Changeset: 80fcfaf4
Author: Roland Westrelin <roland at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/80fcfaf41aa2d6af30f15877e4466647dbca424e
Stats: 251 lines in 5 files changed: 151 ins; 98 del; 2 mod
8369435: C2: transform (LShiftX (SubX con0 a), con1) into (SubX con0<<con1 (LShiftX a con1))
Reviewed-by: epeter, qamai
-------------
PR: https://git.openjdk.org/jdk/pull/27842
More information about the hotspot-compiler-dev
mailing list