[llvm] [AMDGPU] Add and optionally use GCNIterativeRPTrackers (PR #88797)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 15 14:09:26 PDT 2024


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 470aefb240dee7d791875284b9917bf641ca971a 4dcec51b2f46ba6dfdba3b6e4fedfbec758cca35 -- llvm/lib/Target/AMDGPU/GCNRegPressure.cpp llvm/lib/Target/AMDGPU/GCNRegPressure.h llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp llvm/lib/Target/AMDGPU/GCNSchedStrategy.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/GCNRegPressure.h b/llvm/lib/Target/AMDGPU/GCNRegPressure.h
index 3991a51ff0..8b23981dcf 100644
--- a/llvm/lib/Target/AMDGPU/GCNRegPressure.h
+++ b/llvm/lib/Target/AMDGPU/GCNRegPressure.h
@@ -269,7 +269,7 @@ protected:
 
   mutable const MachineRegisterInfo *MRI = nullptr;
 
-  GCNIterativeRPTracker() {};
+  GCNIterativeRPTracker(){};
 
 public:
   void reset(const MachineRegisterInfo *MRI_, const LiveRegSet *LiveRegsCopy);
@@ -280,7 +280,7 @@ public:
 
 class GCNIterativeUpwardRPTracker : public GCNIterativeRPTracker {
 public:
-  GCNIterativeUpwardRPTracker() {};
+  GCNIterativeUpwardRPTracker(){};
 
   // Move to the state just before the MI.
   void recede(const MachineInstr &MI, LiveIntervals *TheLIS);
@@ -288,7 +288,7 @@ public:
 
 class GCNIterativeDownwardRPTracker : public GCNIterativeRPTracker {
 public:
-  GCNIterativeDownwardRPTracker() {};
+  GCNIterativeDownwardRPTracker(){};
 
   // Move to the state just after the MI.
   void advance(const MachineInstr &MI, LiveIntervals *TheLIS);

``````````

</details>


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


More information about the llvm-commits mailing list