[llvm] [DebugInfo][RemoveDIs] Remove a swathe of debug-intrinsic code (PR #144389)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 16 12:53:16 PDT 2025


================
@@ -5554,11 +5550,9 @@ bool InstCombinerImpl::prepareWorklist(Function &F) {
       continue;
 
     unsigned NumDeadInstInBB;
-    unsigned NumDeadDbgInstInBB;
-    std::tie(NumDeadInstInBB, NumDeadDbgInstInBB) =
-        removeAllNonTerminatorAndEHPadInstructions(&BB);
+    NumDeadInstInBB = removeAllNonTerminatorAndEHPadInstructions(&BB);
 
-    MadeIRChange |= NumDeadInstInBB + NumDeadDbgInstInBB > 0;
+    MadeIRChange |= NumDeadInstInBB;
----------------
nikic wrote:

```suggestion
    MadeIRChange |= NumDeadInstInBB != 0;
```

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


More information about the llvm-commits mailing list