[llvm] [DebugInfo][NewGVN] Fix debug value loss (PR #147634)

Shan Huang via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 12 21:53:11 PDT 2025


================
@@ -0,0 +1,43 @@
+; RUN: opt -S -passes=newgvn %s | FileCheck %s
+
+; Check that eliminateInstruction() salvages the debug value of `Def` (`DefI`)
+; which is marked for deletion.
----------------
Apochens wrote:

Thanks, I have refined it in the latest commit.

https://github.com/llvm/llvm-project/pull/147634


More information about the llvm-commits mailing list