RFR(S): 8244086: Following 8241492, strip mined loop may run extra iterations
Roland Westrelin
rwestrel at redhat.com
Thu Apr 30 08:18:20 UTC 2020
Hi Martin,
Thanks for looking at this.
> Anyway, I'm not a fan of the complicated formula, either.
Another possibility would be to cast int values to long, compute the
number of iterations and cast the result back to int. No need to worry
about overflow then. I didn't go that way because 8223051 (support loops
with long (64b) trip count) that I just sent out for review needs
similar logic and there, promoting long values to 128 bit integers is
not possible. I would like the logic of 8223051 and loop strip mining to
remain as similar as possible.
Roland.
More information about the hotspot-compiler-dev
mailing list