[OpenMP][NFC] libomp: fix wrong debug assertion.
authorAndreyChurbanov <andrey.churbanov@intel.com>
Thu, 24 Jun 2021 23:02:14 +0000 (02:02 +0300)
committerAndreyChurbanov <andrey.churbanov@intel.com>
Thu, 24 Jun 2021 23:02:14 +0000 (02:02 +0300)
commitb2787945f9cd2b4705dedea079b4d532c27817f9
tree5edc3656d6da28892089114ee548fbddbe25f57c
parenta1526af46466009ffbefe9dcb23f8b2944ca75a7
[OpenMP][NFC] libomp: fix wrong debug assertion.

Normalized bounds of chunk of iterations to steal from are inclusive,
so upper bound should not be decremented in expression to check.
Problem was in attempt to steal iterations 0:0, that caused assertion after
wrong decrement. Reported in comment to https://reviews.llvm.org/D103648.

Differential Revision: https://reviews.llvm.org/D104880
openmp/runtime/src/kmp_dispatch.cpp