This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Help static loop code avoid over/underflow
ClosedPublic

Authored by jlpeyton on Feb 10 2021, 8:44 AM.

Details

Summary

This patch alleviates some arithmetic problems involving loop parameters (lower bound,
upper bound & stride) within calculations involved in the static loop code. It bounds the chunk size to the trip count if it is greater than the trip count and also minimizes problematic code for when trip count < nth.

Diff Detail

Event Timeline

jlpeyton created this revision.Feb 10 2021, 8:44 AM
jlpeyton requested review of this revision.Feb 10 2021, 8:44 AM
This revision is now accepted and ready to land.Feb 16 2021, 6:11 AM
This revision was landed with ongoing or failed builds.Feb 22 2021, 11:22 AM
This revision was automatically updated to reflect the committed changes.