RFR: 8267928: Loop predicate gets inexact loop limit before PhaseIdealLoop::rc_predicate

Yi Yang yyang at openjdk.java.net
Fri Jun 25 02:30:05 UTC 2021


On Tue, 1 Jun 2021 07:00:11 GMT, Nils Eliasson <neliasso at openjdk.org> wrote:

>> Loop predicate gets inexact loop limit(LoopLimitNode) from exact_limit(even if the limit is statically known) and does unnecessary overflow checking when generating lower bound test(rc_predicate). The reason is rather straightforward: exact_limit fails to see a HasExactTripCount flag since it would be set after performing loop predicate(iteration_split).
>
> Testing looks good.
> 
> Do you have any concrete example for when this happens?

@neliasso I've raised a concrete example about this, can you plz take a look once you have time. Thank you!

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

PR: https://git.openjdk.java.net/jdk/pull/4247


More information about the hotspot-compiler-dev mailing list