RFR: 8325520: Vector loads with offsets incorrectly compiled [v4]
Emanuel Peter
epeter at openjdk.org
Tue May 21 06:45:09 UTC 2024
On Mon, 13 May 2024 21:05:55 GMT, Damon Fenacci <dfenacci at openjdk.org> wrote:
> It looks as if load/stores that use from/intoMemorySegment with different types apparently don’t create LoadVector nodes. It seems that fromMemorySegment tries to inline the VectorSupport::load intrinsic, but fails as the type of the vector and the inferred type of the underlying memory segment differ:
Ha, that seems to be a bit of an arbitrary (maybe just conservative) restriction. I hope we can lift that in the future. We do not have such restrictions for scalar array load/store. And we can also Auto-Vectorize those. Would be interesting to ask some VectorAPI folks about that.
Looking at the tests now!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18347#issuecomment-2121864184
More information about the hotspot-compiler-dev
mailing list