[all-commits] [llvm/llvm-project] 5bfc44: [flang] Emit `argNo` debug info only for `func` bl...
Kareem Ergawy via All-commits
all-commits at lists.llvm.org
Mon Jun 3 02:33:22 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5bfc444524d74b714b9efb2dc00c7bc36a3838e2
https://github.com/llvm/llvm-project/commit/5bfc444524d74b714b9efb2dc00c7bc36a3838e2
Author: Kareem Ergawy <kareem.ergawy at amd.com>
Date: 2024-06-03 (Mon, 03 Jun 2024)
Changed paths:
M flang/include/flang/Optimizer/Dialect/FIROpsSupport.h
M flang/lib/Optimizer/Analysis/AliasAnalysis.cpp
M flang/lib/Optimizer/Dialect/FIROps.cpp
M flang/lib/Optimizer/Transforms/AddDebugInfo.cpp
A flang/test/Lower/OpenMP/debug_info_conflict.f90
Log Message:
-----------
[flang] Emit `argNo` debug info only for `func` block args (#93921)
Fixes a bug uncovered by
[pr43337.f90](https://github.com/llvm/llvm-test-suite/blob/main/Fortran/gfortran/regression/gomp/pr43337.f90)
in the test suite.
In particular, this emits `argNo` debug info only if the parent op of a
block is a `func.func` op. This avoids DI conflicts when a function
contains a nested OpenMP region that itself has block arguments with DI
attached to them; for example, `omp.parallel` with delayed privatization
enabled.
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