[all-commits] [llvm/llvm-project] b27879: [OpenMP][NFC] libomp: fix wrong debug assertion.

Andrey Churbanov via All-commits all-commits at lists.llvm.org
Thu Jun 24 16:02:37 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b2787945f9cd2b4705dedea079b4d532c27817f9
      https://github.com/llvm/llvm-project/commit/b2787945f9cd2b4705dedea079b4d532c27817f9
  Author: AndreyChurbanov <andrey.churbanov at intel.com>
  Date:   2021-06-25 (Fri, 25 Jun 2021)

  Changed paths:
    M openmp/runtime/src/kmp_dispatch.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list