JDK-8343536 : C2 SuperWord / MergeStores: investigate missing optimizations in MemorySegment examples
  • Type: Enhancement
  • Component: client-libs
  • Affected Version: 24
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2024-11-04
  • Updated: 2024-11-04
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
Both for MergeStores and SuperWord, we have these similar tests:

test/hotspot/jtreg/compiler/c2/TestMergeStoresMemorySegment.java
test/hotspot/jtreg/compiler/loopopts/superword/TestMemorySegment.java

There are some examples that do not optimize.
For example the mixed mode for backing types does not optimize.
But also individual examples do not optimize as much as hoped for.
Especially for MergeStores, we have the issue that RangeChecks are not eliminated - i.e. not smeared.