[all-commits] [llvm/llvm-project] ddde06: [OpenMP]Fix PR55970: Miscompile of collapse(3) wit...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Tue Feb 14 10:40:58 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ddde06906be11ea540870d5c0e1b3336a4460612
      https://github.com/llvm/llvm-project/commit/ddde06906be11ea540870d5c0e1b3336a4460612
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2023-02-14 (Tue, 14 Feb 2023)

  Changed paths:
    M clang/lib/Sema/SemaOpenMP.cpp
    M clang/test/OpenMP/for_codegen.cpp
    M clang/test/OpenMP/tile_codegen.cpp
    A openmp/runtime/test/worksharing/for/omp_for_collapse_non_rectangular.c

  Log Message:
  -----------
  [OpenMP]Fix PR55970: Miscompile of collapse(3) with non-rectangular loop nest.

Need to assign the calculated lower bound back to temp variable,
otherwise incorrect value (upper bound instead of lower bound) might be
used.

Differential Revision: https://reviews.llvm.org/D144015




More information about the All-commits mailing list