https://github.com/vikramRH created https://github.com/llvm/llvm-project/pull/173488
None >From 46e5d19cb8164e42a60525fc8f4c6d12a756edd1 Mon Sep 17 00:00:00 2001 From: vikhegde <[email protected]> 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 _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
