[llvm] 191ffda - [RISCV] Remove unused ComplexPatterns. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu May 6 12:18:04 PDT 2021
Author: Craig Topper
Date: 2021-05-06T12:17:41-07:00
New Revision: 191ffda3f70b1a66794cbc8ce4e77b206041a18e
URL: https://github.com/llvm/llvm-project/commit/191ffda3f70b1a66794cbc8ce4e77b206041a18e
DIFF: https://github.com/llvm/llvm-project/commit/191ffda3f70b1a66794cbc8ce4e77b206041a18e.diff
LOG: [RISCV] Remove unused ComplexPatterns. NFC
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h
llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
index 58bc7b9bed6f..b8be5b057009 100644
--- a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
@@ -1448,21 +1448,6 @@ bool RISCVDAGToDAGISel::selectRVVSimm5(SDValue N, unsigned Width,
return false;
}
-bool RISCVDAGToDAGISel::selectRVVUimm5(SDValue N, unsigned Width,
- SDValue &Imm) {
- if (auto *C = dyn_cast<ConstantSDNode>(N)) {
- int64_t ImmVal = C->getSExtValue();
-
- if (!isUInt<5>(ImmVal))
- return false;
-
- Imm = CurDAG->getTargetConstant(ImmVal, SDLoc(N), Subtarget->getXLenVT());
- return true;
- }
-
- return false;
-}
-
// Merge an ADDI into the offset of a load/store instruction where possible.
// (load (addi base, off1), off2) -> (load base, off1+off2)
// (store val, (addi base, off1), off2) -> (store val, base, off1+off2)
diff --git a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h
index 7336bd82a0b6..8ade57df6c3a 100644
--- a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h
+++ b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.h
@@ -74,11 +74,6 @@ class RISCVDAGToDAGISel : public SelectionDAGISel {
return selectRVVSimm5(N, Width, Imm);
}
- bool selectRVVUimm5(SDValue N, unsigned Width, SDValue &Imm);
- template <unsigned Width> bool selectRVVUimm5(SDValue N, SDValue &Imm) {
- return selectRVVUimm5(N, Width, Imm);
- }
-
void addVectorLoadStoreOperands(SDNode *Node, unsigned SEWImm,
const SDLoc &DL, unsigned CurOp,
bool IsMasked, bool IsStridedOrIndexed,
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td b/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
index 160b6e3859ad..4ae46a18a6f4 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
@@ -233,11 +233,6 @@ def sew16simm5 : ComplexPattern<XLenVT, 1, "selectRVVSimm5<16>", []>;
def sew32simm5 : ComplexPattern<XLenVT, 1, "selectRVVSimm5<32>", []>;
def sew64simm5 : ComplexPattern<XLenVT, 1, "selectRVVSimm5<64>", []>;
-def sew8uimm5 : ComplexPattern<XLenVT, 1, "selectRVVUimm5<8>", []>;
-def sew16uimm5 : ComplexPattern<XLenVT, 1, "selectRVVUimm5<16>", []>;
-def sew32uimm5 : ComplexPattern<XLenVT, 1, "selectRVVUimm5<32>", []>;
-def sew64uimm5 : ComplexPattern<XLenVT, 1, "selectRVVUimm5<64>", []>;
-
multiclass VPatBinaryVL_VV<SDNode vop,
string instruction_name,
ValueType result_type,
More information about the llvm-commits
mailing list