JDK-8287009 : Useless CastPPs added by PhiNode::Ideal optimization
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 19,20
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2022-05-19
  • Updated: 2022-10-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
As described in the PR of JDK-8280696 (https://github.com/openjdk/jdk/pull/8770), the following code might add a useless CastPP with a strong dependency that blocks other optimizations:
https://github.com/openjdk/jdk/blob/aa7ccdf44549a52cce9e99f6569097d3343d9ee4/src/hotspot/share/opto/cfgnode.cpp#L2013-L2016

The code was originally introduced by 8139771.