JDK-8331576 : C2 SuperWord: Unsafe access with long address that is a CastX2P does not vectorize
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 23
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2024-05-02
  • Updated: 2025-01-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Description
Attached file, here the commandline:

The issue is that the VPointer wants the address to be a AddP. But in this case, it directly gets a CastX2P, which it does currently not parse through.

./java --add-modules java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED --add-exports java.base/jdk.internal.util=ALL-UNNAMED -XX:CompileCommand=compileonly,Test*::* -XX:CompileCommand=printcompilation,TestMemorySegment::* -XX:CompileCommand=TraceAutoVectorization,Test*::*,SW_REJECTIONS,PRECONDITIONS,POINTERS -XX:+TraceNewVectors -XX:+TraceLoopOpts -Xbatch TestUnsafeAllocateLongAdr.java