[llvm] deac0ac - [AMDGPU] Use default member initialization (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 16 12:44:41 PDT 2022
Author: Kazu Hirata
Date: 2022-07-16T12:44:35-07:00
New Revision: deac0ac52395ebe81d528e6d2b638694d85061ae
URL: https://github.com/llvm/llvm-project/commit/deac0ac52395ebe81d528e6d2b638694d85061ae
DIFF: https://github.com/llvm/llvm-project/commit/deac0ac52395ebe81d528e6d2b638694d85061ae.diff
LOG: [AMDGPU] Use default member initialization (NFC)
Identified with modernize-use-default-member-init.
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp b/llvm/lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp
index 09dbd2150db6..879a9f515fca 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUPerfHintAnalysis.cpp
@@ -74,10 +74,10 @@ struct AMDGPUPerfHint {
private:
struct MemAccessInfo {
- const Value *V;
- const Value *Base;
- int64_t Offset;
- MemAccessInfo() : V(nullptr), Base(nullptr), Offset(0) {}
+ const Value *V = nullptr;
+ const Value *Base = nullptr;
+ int64_t Offset = 0;
+ MemAccessInfo() = default;
bool isLargeStride(MemAccessInfo &Reference) const;
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
Printable print() const {
More information about the llvm-commits
mailing list