RFR: 8347459: C2: missing transformation for chain of shifts/multiplications by constants
Dean Long
dlong at openjdk.org
Fri Feb 21 23:07:53 UTC 2025
On Fri, 21 Feb 2025 15:57:30 GMT, Marc Chevalier <duke at openjdk.org> wrote:
> Care must be taken in the case con1 + con2 is bigger than the number of bits in the integer type. In this case, we must simplify to 0.
So `1 << 33` and `1 << 30 << 3` are still treated differently, according to the JVM spec?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23728#issuecomment-2675792350
More information about the hotspot-compiler-dev
mailing list