[llvm] RegisterPressure: Detect dead physreg defs from LiveIntervals (PR #225079)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 21 06:04:25 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- llvm/include/llvm/CodeGen/RegisterPressure.h llvm/lib/CodeGen/RegisterPressure.cpp llvm/lib/CodeGen/ScheduleDAGInstrs.cpp llvm/lib/Target/AMDGPU/AMDGPUNextUseAnalysis.cpp llvm/lib/Target/AMDGPU/GCNRegPressure.cpp llvm/lib/Target/AMDGPU/GCNRegPressure.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/CodeGen/RegisterPressure.cpp b/llvm/lib/CodeGen/RegisterPressure.cpp
index 40e3c003e..91cb8c321 100644
--- a/llvm/lib/CodeGen/RegisterPressure.cpp
+++ b/llvm/lib/CodeGen/RegisterPressure.cpp
@@ -253,8 +253,7 @@ void RegPressureTracker::reset() {
 ///
 /// TODO: Add support for pressure without LiveIntervals.
 void RegPressureTracker::init(const MachineFunction *mf,
-                              const RegisterClassInfo *rci,
-                              LiveIntervals *lis,
+                              const RegisterClassInfo *rci, LiveIntervals *lis,
                               const MachineBasicBlock *mbb,
                               MachineBasicBlock::const_iterator pos,
                               bool TrackLaneMasks, bool TrackUntiedDefs) {

``````````

</details>


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


More information about the llvm-commits mailing list