RFR: 8328528: C2 should optimize long-typed parallel iv in an int counted loop

Dean Long dlong at openjdk.org
Fri Apr 5 19:06:59 UTC 2024


On Tue, 26 Mar 2024 14:43:42 GMT, Kangcheng Xu <kxu at openjdk.org> wrote:

> Currently, parallel iv optimization only happens in an int counted loop with int-typed parallel iv's. This PR adds support for long-typed iv to be optimized. 
> 
> Additionally, this ticket contributes to the resolution of [JDK-8275913](https://bugs.openjdk.org/browse/JDK-8275913). Meanwhile, I'm working on adding support for parallel IV replacement for long counted loops which will depend on this PR.

Do we also handle the reverse, int-typed parallel iv in a long counted loop?

On a related topic, I noticed that checks for is_range_check_if seem to require the type to match the loop type, but I wonder if that could be relaxed.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/18489#issuecomment-2040471872


More information about the hotspot-compiler-dev mailing list