[flang-commits] [flang] [flang][debug] Keep the bounds of variables in stack slots at -O0. (PR #229876)
via flang-commits
flang-commits at lists.llvm.org
Fri Oct 9 05:08:42 PDT 2026
jeanPerier wrote:
> The fake use keeps %4 alive, but that is not the register the DBG_VALUE names.
I see, so while the fake_use and debug_value applied to the same LLVM IR virtual register, it cannot easily be enforced that they will refer to the same physical register.
> So if you also think this should be done under -g then I can move the changes to AddDebugInfo which may actually simplify the code.
Thanks. Yes, I think I would rather limit it to `-g` and `AddDebugInfo` so that we avoid increasing the IR size for all the early passes and to avoid having to find these back in `AddDebugInfo`.
https://github.com/llvm/llvm-project/pull/229876
More information about the flang-commits
mailing list