JDK-8370936 : C2 MergeStores: move process_for_merge_stores_igvn after allocation elimination
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 26
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2025-10-30
  • Updated: 2025-11-03
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 :  
Description
We saw in JDK-8370405, that MergeStores introduces mismatched stores, and that prevents allocation removal.

As a quick-fix, we could just move process_for_merge_stores_igvn to a later point.

This would allow allocation elimination to have a chance to work. And if it still fails, we can still do MergeStores.

Long-term, we might want to allow allocation elimination to deal with some mismatched stores.

We might also want to refactor MergeStores and the eventual MergeLoads JDK-8345485 not to work with IGVN, and so work even later. But that is more work, and we can do that later.