git: openjdk/jdk: master: 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:35:52 UTC 2025


Changeset: 80fcfaf4
Branch: master
Author:    Roland Westrelin <roland at openjdk.org>
Date:      2025-10-30 10:34:37 +0000
URL:       https://git.openjdk.org/jdk/commit/80fcfaf41aa2d6af30f15877e4466647dbca424e

8369435: C2: transform (LShiftX (SubX con0 a), con1) into (SubX con0<<con1 (LShiftX a con1))

Reviewed-by: epeter, qamai

! src/hotspot/share/opto/mulnode.cpp
! test/hotspot/jtreg/compiler/c2/irTests/LShiftINodeIdealizationTests.java
! test/hotspot/jtreg/compiler/c2/irTests/LShiftLNodeIdealizationTests.java
- test/hotspot/jtreg/compiler/loopopts/superword/TestMemorySegment_8359688.java
+ test/hotspot/jtreg/compiler/loopopts/superword/TestMemorySegment_SubOfShift.java



More information about the jdk-changes mailing list