RFR: 8328528: C2 should optimize long-typed parallel iv in an int counted loop [v25]
Christian Hagedorn
chagedorn at openjdk.org
Mon Oct 21 06:58:38 UTC 2024
On Mon, 21 Oct 2024 06:36:30 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.
>
> Kangcheng Xu has updated the pull request incrementally with one additional commit since the last revision:
>
> Update src/hotspot/share/opto/loopnode.cpp
>
> Co-authored-by: Christian Hagedorn <christian.hagedorn at oracle.com>
src/hotspot/share/opto/loopnode.cpp line 3952:
> 3950: // int iv = init
> 3951: // loop:
> 3952: // if ( iv >= limit ) goto exit
Last nit, then we are good to go from my side :-) Thanks for the updates!
Suggestion:
// if (iv >= limit) goto exit
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18489#discussion_r1808199243
More information about the hotspot-compiler-dev
mailing list