[llvm] 2b7b609 - [RISCV] Use getVTList to simplify creation of vleff MachineSDNode. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 30 11:34:25 PDT 2022
Author: Craig Topper
Date: 2022-06-30T11:34:02-07:00
New Revision: 2b7b609821b6a5f468425d449e55196370517324
URL: https://github.com/llvm/llvm-project/commit/2b7b609821b6a5f468425d449e55196370517324
DIFF: https://github.com/llvm/llvm-project/commit/2b7b609821b6a5f468425d449e55196370517324.diff
LOG: [RISCV] Use getVTList to simplify creation of vleff MachineSDNode. NFC
We don't need to pass the 3 VTs separately, we already have a list
available to us.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
index 0bb78436d190..25d569225f2e 100644
--- a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
@@ -1454,7 +1454,7 @@ void RISCVDAGToDAGISel::Select(SDNode *Node) {
RISCV::getVLEPseudo(IsMasked, IsTU, /*Strided*/ false, /*FF*/ true,
Log2SEW, static_cast<unsigned>(LMUL));
MachineSDNode *Load = CurDAG->getMachineNode(
- P->Pseudo, DL, Node->getValueType(0), XLenVT, MVT::Other, Operands);
+ P->Pseudo, DL, Node->getVTList(), Operands);
if (auto *MemOp = dyn_cast<MemSDNode>(Node))
CurDAG->setNodeMemRefs(Load, {MemOp->getMemOperand()});
More information about the llvm-commits
mailing list