[llvm] fa6c02a - [RISCV][GISEL] Remove unused LegalizerHelper argument from legalizeExtractSubvector. NFC.
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 1 11:21:40 PDT 2024
Author: Michael Maitland
Date: 2024-10-01T11:21:31-07:00
New Revision: fa6c02a93d402aff1f9ffdb45efff9c1f44df52a
URL: https://github.com/llvm/llvm-project/commit/fa6c02a93d402aff1f9ffdb45efff9c1f44df52a
DIFF: https://github.com/llvm/llvm-project/commit/fa6c02a93d402aff1f9ffdb45efff9c1f44df52a.diff
LOG: [RISCV][GISEL] Remove unused LegalizerHelper argument from legalizeExtractSubvector. NFC.
This argument was leftover from a draft version of the patch that added it.
Added:
Modified:
llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
index edb6a522f190d8..139ffcd27a0c17 100644
--- a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
+++ b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
@@ -965,7 +965,6 @@ static LLT getLMUL1Ty(LLT VecTy) {
}
bool RISCVLegalizerInfo::legalizeExtractSubvector(MachineInstr &MI,
- LegalizerHelper &Helper,
MachineIRBuilder &MIB) const {
GExtractSubvector &ES = cast<GExtractSubvector>(MI);
@@ -1126,7 +1125,7 @@ bool RISCVLegalizerInfo::legalizeCustom(
case TargetOpcode::G_SPLAT_VECTOR:
return legalizeSplatVector(MI, MIRBuilder);
case TargetOpcode::G_EXTRACT_SUBVECTOR:
- return legalizeExtractSubvector(MI, Helper, MIRBuilder);
+ return legalizeExtractSubvector(MI, MIRBuilder);
case TargetOpcode::G_LOAD:
case TargetOpcode::G_STORE:
return legalizeLoadStore(MI, Helper, MIRBuilder);
diff --git a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.h b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.h
index 6919bca5a9104f..d2afb175ae42bb 100644
--- a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.h
+++ b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.h
@@ -46,8 +46,7 @@ class RISCVLegalizerInfo : public LegalizerInfo {
bool legalizeVScale(MachineInstr &MI, MachineIRBuilder &MIB) const;
bool legalizeExt(MachineInstr &MI, MachineIRBuilder &MIRBuilder) const;
bool legalizeSplatVector(MachineInstr &MI, MachineIRBuilder &MIB) const;
- bool legalizeExtractSubvector(MachineInstr &MI, LegalizerHelper &Helper,
- MachineIRBuilder &MIB) const;
+ bool legalizeExtractSubvector(MachineInstr &MI, MachineIRBuilder &MIB) const;
bool legalizeLoadStore(MachineInstr &MI, LegalizerHelper &Helper,
MachineIRBuilder &MIB) const;
};
More information about the llvm-commits
mailing list