JDK-8279535 : C2: Dead code in PhaseIdealLoop::create_loop_nest after JDK-8276116
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 18,19
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2022-01-05
  • Updated: 2022-01-18
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 19
19Unresolved
Related Reports
Relates :  
Description
SonarCloud reports these lines are dead:

bool PhaseIdealLoop::create_loop_nest(IdealLoopTree* loop, Node_List &old_new) {
 ...
  BoolTest::mask mask = exit_test->as_BaseCountedLoopEnd()->test_trip();
  Node* cmp = exit_test->as_BaseCountedLoopEnd()->cmp_node();
 ...

Either these are a simple leftovers, or their non-use constitutes a bug?