RFR: 8262017: C2: assert(n != __null) failed: Bad immediate dominator info. [v2]
Christian Hagedorn
chagedorn at openjdk.java.net
Tue Jun 8 15:53:39 UTC 2021
On Mon, 7 Jun 2021 15:32:55 GMT, Roland Westrelin <roland at openjdk.org> wrote:
>> Christian Hagedorn has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Add case for positive stride*scale
>
> src/hotspot/share/opto/loopTransform.cpp line 2428:
>
>> 2426: // I > (low_limit-(offset+1))/scale
>> 2427: // )
>> 2428: if (low_limit->get_long() == -max_jint) {
>
> There was similar code in both branches of the if ((stride_con^scale_con) >= 0) { but you're adding it back in only one of the branches. Is it not needed in the other one?
I think I just missed on that one. In theory, we would just do more iterations in the pre-loop instead of the main-loop when underflowing and it will be fine. But I'm not sure if we eventually run into similar problems as with the other branch (I could not trigger that though). So, I reintroduced the code for this branch as well.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4362
More information about the hotspot-compiler-dev
mailing list