[llvm] 8c107be - [LegalizeVectorOps] fix a typo
Chen Zheng via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 13 16:31:36 PST 2021
Author: Chen Zheng
Date: 2021-12-14T00:22:58Z
New Revision: 8c107bee702f1bfe28a37840c3952a43172b4897
URL: https://github.com/llvm/llvm-project/commit/8c107bee702f1bfe28a37840c3952a43172b4897
DIFF: https://github.com/llvm/llvm-project/commit/8c107bee702f1bfe28a37840c3952a43172b4897.diff
LOG: [LegalizeVectorOps] fix a typo
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D115637
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
index ced743a8e4de5..839491f625edc 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
@@ -281,7 +281,7 @@ SDValue VectorLegalizer::LegalizeOp(SDValue Op) {
std::pair<SDValue, SDValue> Tmp = ExpandLoad(Node);
AddLegalizedOperand(Op.getValue(0), Tmp.first);
AddLegalizedOperand(Op.getValue(1), Tmp.second);
- return Op.getResNo() ? Tmp.first : Tmp.second;
+ return Op.getResNo() ? Tmp.second : Tmp.first;
}
}
}
More information about the llvm-commits
mailing list