RFR: 8351468: C2: array fill optimization assigns wrong type to intrinsic call
Quan Anh Mai
qamai at openjdk.org
Wed Mar 12 14:45:57 UTC 2025
On Wed, 12 Mar 2025 14:33:15 GMT, Roberto Castañeda Lozano <rcastanedalo at openjdk.org> wrote:
> A store of a char value into a long[] array would be represented at the IR level as a conversion (ConvI2L) followed by a StoreL, no?
No, a code such as this `MemorySegment.ofArray(longArray).set(ValueLayout.JAVA_SHORT, offset, c)` would produce a `StoreC` into a `long[]`.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24005#issuecomment-2718133834
More information about the hotspot-compiler-dev
mailing list