[llvm] b89e0ac - [Hexagon] Apply 7f06a5824cdb297a19b7c82bb191c22539f34070 to another copy of the same code
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 25 02:14:44 PST 2022
Author: Benjamin Kramer
Date: 2022-11-25T11:14:14+01:00
New Revision: b89e0acb5ef3458f4717138234453731a963388e
URL: https://github.com/llvm/llvm-project/commit/b89e0acb5ef3458f4717138234453731a963388e
DIFF: https://github.com/llvm/llvm-project/commit/b89e0acb5ef3458f4717138234453731a963388e.diff
LOG: [Hexagon] Apply 7f06a5824cdb297a19b7c82bb191c22539f34070 to another copy of the same code
Added:
Modified:
llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp b/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
index d4ad9e52eb6e..c7c72b98d710 100644
--- a/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
@@ -695,15 +695,16 @@ void HexagonDAGToDAGISel::SelectIntrinsicWOChain(SDNode *N) {
void HexagonDAGToDAGISel::SelectExtractSubvector(SDNode *N) {
SDValue Inp = N->getOperand(0);
MVT ResTy = N->getValueType(0).getSimpleVT();
+ auto IdxN = cast<ConstantSDNode>(N->getOperand(1));
+ unsigned Idx = IdxN->getZExtValue();
+#ifndef NDEBUG
MVT InpTy = Inp.getValueType().getSimpleVT();
assert(InpTy.getVectorElementType() == ResTy.getVectorElementType());
unsigned ResLen = ResTy.getVectorNumElements();
assert(2 * ResLen == InpTy.getVectorNumElements());
assert(ResTy.getSizeInBits() == 32);
-
- auto IdxN = cast<ConstantSDNode>(N->getOperand(1));
- unsigned Idx = IdxN->getZExtValue();
assert(Idx == 0 || Idx == ResLen);
+#endif
unsigned SubReg = Idx == 0 ? Hexagon::isub_lo : Hexagon::isub_hi;
SDValue Ext = CurDAG->getTargetExtractSubreg(SubReg, SDLoc(N), ResTy, Inp);
More information about the llvm-commits
mailing list