[all-commits] [llvm/llvm-project] d11b9a: [Clang][OpenMP] Delay `collapse/ordered` nest walk...

Amit Tiwari via All-commits all-commits at lists.llvm.org
Mon Sep 21 22:08:03 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d11b9adc9bd2a1c8142ff134d04275c4cfce34b0
      https://github.com/llvm/llvm-project/commit/d11b9adc9bd2a1c8142ff134d04275c4cfce34b0
  Author: Amit Tiwari <Amit.Tiwari at amd.com>
  Date:   2026-09-22 (Tue, 22 Sep 2026)

  Changed paths:
    M clang/lib/Sema/SemaOpenMP.cpp
    A clang/test/OpenMP/collapse_ordered_instantiation_dependent.cpp

  Log Message:
  -----------
  [Clang][OpenMP] Delay `collapse/ordered` nest walk until instantiation (#225052)

Do not fold `collapse` and `ordered` counts in `checkOpenMPLoop` until
the expression is no longer instantiation-dependent.

Clause parsing already waits. The loop walker did not. A count like
`sizeof(sizeof(T() + T()))` was folded in the template, so Clang could
walk the wrong number of loops before instantiation.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list