[all-commits] [llvm/llvm-project] 56223b: [OpenMP] Help static loop code avoid over/underflow
Jonathan Peyton via All-commits
all-commits at lists.llvm.org
Mon Feb 22 11:22:43 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 56223b1e91ed444a054aa9bd20878d0b62c7b53b
https://github.com/llvm/llvm-project/commit/56223b1e91ed444a054aa9bd20878d0b62c7b53b
Author: Peyton, Jonathan L <jonathan.l.peyton at intel.com>
Date: 2021-02-22 (Mon, 22 Feb 2021)
Changed paths:
M openmp/runtime/src/kmp_dispatch.cpp
M openmp/runtime/src/kmp_sched.cpp
A openmp/runtime/test/worksharing/for/omp_for_static_large_chunk.c
Log Message:
-----------
[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
More information about the All-commits
mailing list