JDK-8277139 : Improve code readability in PredecessorValidator (c1_IR.cpp)
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 18
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-11-15
  • Updated: 2021-11-29
  • Resolved: 2021-11-26
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 18
18 masterFixed
Related Reports
Blocks :  
Description
Refactor PredecessorValidator, more or less applying the following:

declare variables where used
redeclare instead of reuse variables
move assert to a more logical place
remove unused length variable
inline variables where senseful
split loops
extract methods

this is done in preparation for work on optimizing IR::verify. IR::verify calls PredecessorValidator. If the work of PredecessorValidator is made clearer, it will be easier to reason about where IR::verify doesn't need to be called (or where a subset of it would suffice).
Comments
Changeset: 040b2c52 Author: Ludvig Janiuk <ludvig.j.janiuk@oracle.com> Committer: Nils Eliasson <neliasso@openjdk.org> Date: 2021-11-26 09:52:10 +0000 URL: https://git.openjdk.java.net/jdk/commit/040b2c52d3e82048630fbd45a7db48a5e65204b7
26-11-2021