C2 should optimize the following code shape:
If
/ \
Proj Proj
\ / [...]
\ / /
Region1
|
| x x y
\ | | /
Phi
This optimization was added withJDK-8210215 for regions with 2 and 3 inputs but should be extended/replaced for the general case. See discussion in:
http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2018-October/030834.html
If
/ \
Proj Proj
\ / [...]
\ / /
Region1
|
| x x y
\ | | /
Phi
This optimization was added with
http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2018-October/030834.html
- blocks
-
JDK-8302137 Speed up compiler/codegen/TestTrichotomyExpressions.java
-
- Open
-
- relates to
-
JDK-8275202 C2: optimize out more redundant conditions
-
- Open
-
-
JDK-8210215 C2 should optimize trichotomy calculations
-
- Resolved
-