[llvm] 666970c - [RISCV] Remove unnecessary initialization from RISCVPostRAExpandPseudo pass constructor.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed May 8 22:38:41 PDT 2024
Author: Craig Topper
Date: 2024-05-08T22:38:18-07:00
New Revision: 666970cab2e80055cf1e5b5e9025c8f88e0d0732
URL: https://github.com/llvm/llvm-project/commit/666970cab2e80055cf1e5b5e9025c8f88e0d0732
DIFF: https://github.com/llvm/llvm-project/commit/666970cab2e80055cf1e5b5e9025c8f88e0d0732.diff
LOG: [RISCV] Remove unnecessary initialization from RISCVPostRAExpandPseudo pass constructor.
It is already initialized in RISCVTargetMachine.cpp
Added:
Modified:
llvm/lib/Target/RISCV/RISCVPostRAExpandPseudoInsts.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVPostRAExpandPseudoInsts.cpp b/llvm/lib/Target/RISCV/RISCVPostRAExpandPseudoInsts.cpp
index 57b473645ae7..52f2ce27164d 100644
--- a/llvm/lib/Target/RISCV/RISCVPostRAExpandPseudoInsts.cpp
+++ b/llvm/lib/Target/RISCV/RISCVPostRAExpandPseudoInsts.cpp
@@ -31,9 +31,7 @@ class RISCVPostRAExpandPseudo : public MachineFunctionPass {
const RISCVInstrInfo *TII;
static char ID;
- RISCVPostRAExpandPseudo() : MachineFunctionPass(ID) {
- initializeRISCVPostRAExpandPseudoPass(*PassRegistry::getPassRegistry());
- }
+ RISCVPostRAExpandPseudo() : MachineFunctionPass(ID) {}
bool runOnMachineFunction(MachineFunction &MF) override;
More information about the llvm-commits
mailing list