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

Orlando Cazalet-Hyams via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 11 03:06:35 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.
----------------
OCHyams wrote:

The comment has a chance of going stale, referring to the LLVM source. I think function name is ok but instead of LLVM source variables, it's probably better to describe what's happening in terms of the IR in the test.

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


More information about the llvm-commits mailing list