aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MCA
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-01-01 16:18:18 -0800
committerKazu Hirata <kazu@google.com>2022-01-01 16:18:18 -0800
commitfd4808887ee47f3ec8a030e9211169ef4fb094c3 (patch)
tree73657b469ae10e1950dc3af57464fef9ac52a3b3 /llvm/lib/MCA
parent104a827ea6de0cbe0f5faef4407552ede31d165c (diff)
downloadllvm-fd4808887ee47f3ec8a030e9211169ef4fb094c3.zip
llvm-fd4808887ee47f3ec8a030e9211169ef4fb094c3.tar.gz
llvm-fd4808887ee47f3ec8a030e9211169ef4fb094c3.tar.bz2
[llvm] Remove redundant member initialization (NFC)
Identified with readability-redundant-member-init.
Diffstat (limited to 'llvm/lib/MCA')
-rw-r--r--llvm/lib/MCA/Stages/DispatchStage.cpp2
-rw-r--r--llvm/lib/MCA/Stages/InOrderIssueStage.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MCA/Stages/DispatchStage.cpp b/llvm/lib/MCA/Stages/DispatchStage.cpp
index 5385142..66228bd 100644
--- a/llvm/lib/MCA/Stages/DispatchStage.cpp
+++ b/llvm/lib/MCA/Stages/DispatchStage.cpp
@@ -30,7 +30,7 @@ DispatchStage::DispatchStage(const MCSubtargetInfo &Subtarget,
unsigned MaxDispatchWidth, RetireControlUnit &R,
RegisterFile &F)
: DispatchWidth(MaxDispatchWidth), AvailableEntries(MaxDispatchWidth),
- CarryOver(0U), CarriedOver(), STI(Subtarget), RCU(R), PRF(F) {
+ CarryOver(0U), STI(Subtarget), RCU(R), PRF(F) {
if (!DispatchWidth)
DispatchWidth = Subtarget.getSchedModel().IssueWidth;
}
diff --git a/llvm/lib/MCA/Stages/InOrderIssueStage.cpp b/llvm/lib/MCA/Stages/InOrderIssueStage.cpp
index fa5c0fc..abfbc80 100644
--- a/llvm/lib/MCA/Stages/InOrderIssueStage.cpp
+++ b/llvm/lib/MCA/Stages/InOrderIssueStage.cpp
@@ -47,7 +47,7 @@ InOrderIssueStage::InOrderIssueStage(const MCSubtargetInfo &STI,
RegisterFile &PRF, CustomBehaviour &CB,
LSUnit &LSU)
: STI(STI), PRF(PRF), RM(STI.getSchedModel()), CB(CB), LSU(LSU),
- NumIssued(), SI(), CarryOver(), Bandwidth(), LastWriteBackCycle() {}
+ NumIssued(), CarryOver(), Bandwidth(), LastWriteBackCycle() {}
unsigned InOrderIssueStage::getIssueWidth() const {
return STI.getSchedModel().IssueWidth;