[llvm] [DebugInfo][NewGVN] Fix debug value loss (PR #147634)
Vladislav Dzhidzhoev via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 9 06:42:29 PDT 2025
================
@@ -4076,6 +4076,7 @@ bool NewGVN::eliminateInstructions(Function &F) {
if (!match(DefI, m_Intrinsic<Intrinsic::ssa_copy>()))
patchReplacementInstruction(DefI, DominatingLeader);
+ salvageDebugInfo(*DefI);
----------------
dzhidzhoev wrote:
Thank you. I'm fine with the current version if extra salvaging calls are redundant.
https://github.com/llvm/llvm-project/pull/147634
More information about the llvm-commits
mailing list