JDK-8369258 : C2: enable ReassociateInvariants for all loop types
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 26
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-10-07
  • Updated: 2025-12-05
  • Resolved: 2025-10-16
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.
JDK 26
26 b20Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
Currently ReassociateInvariants is only enabled for int counted loops. I noticed, enabling it for long counted loops helps RCE. It also seems like something that would help any loop.
Comments
Changeset: ff6a0170 Branch: master Author: Roland Westrelin <roland@openjdk.org> Date: 2025-10-16 07:35:41 +0000 URL: https://git.openjdk.org/jdk/commit/ff6a0170f0ab5cfb4af6d6a4a779451823c486d6
16-10-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/27666 Date: 2025-10-07 07:36:41 +0000
07-10-2025