[llvm] [CorrelatedValuePropagation] Drop stale debug records on context-only rewrites (PR #218498)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 24 20:16:33 PDT 2026
https://github.com/MrEven132 commented:
I don't think we should drop the debug records here. It should be straightforward to represent the original value with a DIExpression. Also, dropping this dbg_value does not necessarily make the variable unavailable. If the same variable has an earlier dbg_value, that earlier value may remain in effect here, causing the debugger to report a stale and incorrect value. Therefore, dropping the record does not fully fix the problem.
https://github.com/llvm/llvm-project/pull/218498
More information about the llvm-commits
mailing list