[all-commits] [llvm/llvm-project] 06dcba: [flang][debug] Add fake use ops for dynamic array ...

Tim via All-commits all-commits at lists.llvm.org
Mon Jun 22 05:34:04 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 06dcba660904e041cca1d245e674f040bb04f454
      https://github.com/llvm/llvm-project/commit/06dcba660904e041cca1d245e674f040bb04f454
  Author: Tim <timothy.smith at hpe.com>
  Date:   2026-06-22 (Mon, 22 Jun 2026)

  Changed paths:
    M flang/include/flang/Optimizer/Transforms/Passes.td
    M flang/lib/Optimizer/Passes/Pipelines.cpp
    M flang/lib/Optimizer/Transforms/AddDebugInfo.cpp
    A flang/test/Transforms/debug-fake-use-multiple-dimensions.fir
    A flang/test/Transforms/debug-fake-use-multiple-returns.fir
    M flang/test/Transforms/debug-fake-use.fir

  Log Message:
  -----------
  [flang][debug] Add fake use ops for dynamic array dimension variables (#200061)

In cases where the upper or lower bounds of a dynamic array are not
explicitly referenced in code, flang can optimize away the internal
variables that represent these values. This causes missing values to
appear in the debugger when examining the dynamic array's type. Adding
an llvm.fake.use op for each bound preserves it for use by a debugger,
similar to the fix for #185432.

Resolves #119474



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