commit | eb1199a7e998861ed661c88be08a7c8906b9944e | [log] [tgz] |
---|---|---|
author | Peyton, Jonathan L <jonathan.l.peyton@intel.com> | Fri Jan 29 14:02:38 2021 -0600 |
committer | Copybara-Service <copybara-worker@google.com> | Sat Feb 27 00:09:07 2021 -0800 |
tree | 56f27e4248317fd8c17ae3bac9ee942c2117582e | |
parent | 09066e078bf4709efbe424391e4a43fc70091257 [diff] |
[OpenMP] Help static loop code avoid over/underflow This code alleviates some pathological loop parameters (lower, upper, 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. Differential Revision: https://reviews.llvm.org/D96426 GitOrigin-RevId: 56223b1e91ed444a054aa9bd20878d0b62c7b53b