[llvm] [AMDGPU] Default-initialize uninitialized class member variables (PR #108428)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 24 03:51:13 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 3d34053af61ff45e05d230d2678eb8e95322eb14 1f013d5105aa8589f8cee7caa795d616767dbfb6 --extensions h,cpp -- llvm/lib/Target/AMDGPU/SIFixSGPRCopies.cpp llvm/lib/Target/AMDGPU/SIMachineScheduler.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/SIFixSGPRCopies.cpp b/llvm/lib/Target/AMDGPU/SIFixSGPRCopies.cpp
index 46f5097c67..33573821e4 100644
--- a/llvm/lib/Target/AMDGPU/SIFixSGPRCopies.cpp
+++ b/llvm/lib/Target/AMDGPU/SIFixSGPRCopies.cpp
@@ -109,7 +109,7 @@ public:
SetVector<unsigned> Siblings;
V2SCopyInfo() : Copy(nullptr), ID(0){};
V2SCopyInfo(unsigned Id, MachineInstr *C, unsigned Width)
- : Copy(C), NumReadfirstlanes(Width / 32), ID(Id){};
+ : Copy(C), NumReadfirstlanes(Width / 32), ID(Id) {};
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
void dump() {
dbgs() << ID << " : " << *Copy << "\n\tS:" << SChain.size()
diff --git a/llvm/lib/Target/AMDGPU/SIMachineScheduler.h b/llvm/lib/Target/AMDGPU/SIMachineScheduler.h
index f8f4b5aae3..70ae7b809a 100644
--- a/llvm/lib/Target/AMDGPU/SIMachineScheduler.h
+++ b/llvm/lib/Target/AMDGPU/SIMachineScheduler.h
@@ -120,8 +120,8 @@ public:
ArrayRef<std::pair<SIScheduleBlock*, SIScheduleBlockLinkKind>>
getSuccs() const { return Succs; }
- unsigned Height = 0; // Maximum topdown path length to block without outputs
- unsigned Depth = 0; // Maximum bottomup path length to block without inputs
+ unsigned Height = 0; // Maximum topdown path length to block without outputs
+ unsigned Depth = 0; // Maximum bottomup path length to block without inputs
unsigned getNumHighLatencySuccessors() const {
return NumHighLatencySuccessors;
``````````
</details>
https://github.com/llvm/llvm-project/pull/108428
More information about the llvm-commits
mailing list