JDK-8324793 : Fold simple range checks
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 23
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2024-01-27
  • Updated: 2024-01-29
  • Resolved: 2024-01-29
Related Reports
Duplicate :  
Description
For example, we can fold

```
if (i > 3000) {
  if (i > 2000) {
  }
}
```

into 

```
if (i > 3000) {}
```
Comments
This is a duplicate of JDK-8275202.
29-01-2024