[AArch64][SVE] Change DupLane128Combine Index comparison to 0

IdxInsert == IdxDupLane is incorrect. IdxInsert is the starting element number,
whereas IdxIndex is the index of a quadword
This commit is contained in:
Matt Devereau 2022-07-29 14:20:00 +00:00
parent 64fdcfeb1a
commit a8b726ac65
1 changed files with 1 additions and 1 deletions

View File

@ -19510,7 +19510,7 @@ static SDValue performDupLane128Combine(SDNode *N, SelectionDAG &DAG) {
uint64_t IdxInsert = Insert.getConstantOperandVal(2);
uint64_t IdxDupLane = N->getConstantOperandVal(1);
if (IdxInsert != IdxDupLane)
if (IdxInsert != 0 || IdxDupLane != 0)
return SDValue();
SDValue Bitcast = Insert.getOperand(1);