JDK-8348411 : C2: Remove the control input of LoadKlassNode and LoadNKlassNode
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 25
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-01-23
  • Updated: 2025-02-25
  • Resolved: 2025-02-08
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 25
25 b10Fixed
Related Reports
Relates :  
Relates :  
Description
The only place where they are created with a control input is at Parse::array_store_check(), the reason given is

// We are allowed to use the constant type only if cast succeeded

But this seems incorrect, the load from the constant type can be done regardless, and it will be constant-folded.
Comments
Changeset: e9278de3 Branch: master Author: Quan Anh Mai <qamai@openjdk.org> Date: 2025-02-08 04:20:46 +0000 URL: https://git.openjdk.org/jdk/commit/e9278de3f8676c288bfdce96f8348470e7c42900
08-02-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/23274 Date: 2025-01-23 17:22:02 +0000
23-01-2025