[llvm] 50c01fa - [CodeGen][NPM] dump slot index info with -debug while running LiveIntervals (#173488)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 21 08:59:57 PST 2026


Author: Vikram Hegde
Date: 2026-01-21T17:59:53+01:00
New Revision: 50c01fa130cc104aa7635be6b73f6df9833a8ebc

URL: https://github.com/llvm/llvm-project/commit/50c01fa130cc104aa7635be6b73f6df9833a8ebc
DIFF: https://github.com/llvm/llvm-project/commit/50c01fa130cc104aa7635be6b73f6df9833a8ebc.diff

LOG: [CodeGen][NPM] dump slot index info with -debug while running LiveIntervals (#173488)

matches legacy. tests such as "CodeGen/AMDGPU/liveness.mir" and
"CodeGen/AMDGPU/phys-partial-liveness.mir" use this.

Added: 
    

Modified: 
    llvm/lib/CodeGen/LiveIntervals.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/LiveIntervals.cpp b/llvm/lib/CodeGen/LiveIntervals.cpp
index a8269a79b544e..6ed379418abef 100644
--- a/llvm/lib/CodeGen/LiveIntervals.cpp
+++ b/llvm/lib/CodeGen/LiveIntervals.cpp
@@ -65,8 +65,10 @@ AnalysisKey LiveIntervalsAnalysis::Key;
 LiveIntervalsAnalysis::Result
 LiveIntervalsAnalysis::run(MachineFunction &MF,
                            MachineFunctionAnalysisManager &MFAM) {
-  return Result(MF, MFAM.getResult<SlotIndexesAnalysis>(MF),
-                MFAM.getResult<MachineDominatorTreeAnalysis>(MF));
+  auto Res = Result(MF, MFAM.getResult<SlotIndexesAnalysis>(MF),
+                    MFAM.getResult<MachineDominatorTreeAnalysis>(MF));
+  LLVM_DEBUG(Res.dump());
+  return Res;
 }
 
 PreservedAnalyses


        


More information about the llvm-commits mailing list