[llvm-branch-commits] [llvm] [CodeGen][NPM] dump slot index info with -debug while running LiveIntervals (PR #173488)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Dec 25 18:44:35 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-regalloc
Author: Vikram Hegde (vikramRH)
<details>
<summary>Changes</summary>
matches legacy. tests such as "CodeGen/AMDGPU/liveness.mir" and "CodeGen/AMDGPU/phys-partial-liveness.mir" use this.
---
Full diff: https://github.com/llvm/llvm-project/pull/173488.diff
1 Files Affected:
- (modified) llvm/lib/CodeGen/LiveIntervals.cpp (+4-2)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/173488
More information about the llvm-branch-commits
mailing list