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

Reviewed-by: thartmann, chagedorn, kvn
This commit is contained in:
Yi Yang 2021-11-30 11:50:51 +00:00
parent a5f2a58ba4
commit fecf906f0a

@ -1277,6 +1277,7 @@ bool PhaseIdealLoop::loop_predication_impl_helper(IdealLoopTree *loop, ProjNode*
// Limit is not exact.
// Calculate exact limit here.
// Note, counted loop's test is '<' or '>'.
loop->compute_trip_count(this);
Node* limit = exact_limit(loop);
int stride = cl->stride()->get_int();