JDK-8334647 : C2: CastII added by PhaseIdealLoop::add_template_assertion_predicate() should have control
Type:Bug
Component:hotspot
Sub-Component:compiler
Affected Version:24
Priority:P4
Status:Resolved
Resolution:Fixed
Submitted:2024-06-20
Updated:2024-08-16
Resolved:2024-07-25
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.
PhaseIdealLoop::add_template_assertion_predicate() creates a new CastII but doesn't set its control. I think it's good practice for all CastII that narrow the type of their input to have their control set.