[llvm-branch-commits] [llvm] [CodeGen][NPM] dump slot index info with -debug while running LiveIntervals (PR #173488)
Vikram Hegde via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Dec 31 22:53:37 PST 2025
https://github.com/vikramRH updated https://github.com/llvm/llvm-project/pull/173488
>From ce33105684b97d9e38f778eb7e842c4c10e32a08 Mon Sep 17 00:00:00 2001
From: vikhegde <vikram.hegde at amd.com>
Date: Wed, 24 Dec 2025 11:16:30 +0530
Subject: [PATCH] [CodeGen][NPM] dump slot index info with -debug while running
LiveIntervals
---
llvm/lib/CodeGen/LiveIntervals.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/llvm/lib/CodeGen/LiveIntervals.cpp b/llvm/lib/CodeGen/LiveIntervals.cpp
index 2e8756565c8f7..48fdb8c06a820 100644
--- a/llvm/lib/CodeGen/LiveIntervals.cpp
+++ b/llvm/lib/CodeGen/LiveIntervals.cpp
@@ -64,8 +64,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-branch-commits
mailing list