[llvm] e2d5a38 - [SelectionDAG] Fix typo in VPLoadStoreSDNode
Roger Ferrer Ibanez via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 12 01:37:46 PDT 2021
Author: Roger Ferrer Ibanez
Date: 2021-10-12T10:36:31+02:00
New Revision: e2d5a380e04363fb3705ebfbf787c6d2c7659504
URL: https://github.com/llvm/llvm-project/commit/e2d5a380e04363fb3705ebfbf787c6d2c7659504
DIFF: https://github.com/llvm/llvm-project/commit/e2d5a380e04363fb3705ebfbf787c6d2c7659504.diff
LOG: [SelectionDAG] Fix typo in VPLoadStoreSDNode
There is no code that uses this base class yet, hence the typo went
unnoticed when this class was added in D105871
Differential Revision: https://reviews.llvm.org/D110930
Added:
Modified:
llvm/include/llvm/CodeGen/SelectionDAGNodes.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
index 8b66893747a94..cc00af90ec678 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -2354,7 +2354,7 @@ class VPLoadStoreSDNode : public MemSDNode {
// Mask is a vector of i1 elements;
// the type of EVL is TLI.getVPExplicitVectorLengthTy().
const SDValue &getOffset() const {
- return getOperand(getOpcode() == ISD::MLOAD ? 2 : 3);
+ return getOperand(getOpcode() == ISD::VP_LOAD ? 2 : 3);
}
const SDValue &getBasePtr() const {
return getOperand(getOpcode() == ISD::VP_LOAD ? 1 : 2);
More information about the llvm-commits
mailing list