[Openmp-commits] [PATCH] D96426: [OpenMP] Help static loop code avoid over/underflow

Jonathan Peyton via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Feb 10 08:44:03 PST 2021

jlpeyton created this revision.
jlpeyton added reviewers: AndreyChurbanov, tlwilmar, hbae, Nawrin.
jlpeyton added a project: OpenMP.
Herald added subscribers: jfb, guansong, yaxunl.
jlpeyton requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.

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.

  rG LLVM Github Monorepo



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96426.322700.patch
Type: text/x-patch
Size: 5896 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210210/a30bba43/attachment.bin>

More information about the Openmp-commits mailing list