forked from OSchip/llvm-project
[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:
parent
64fdcfeb1a
commit
a8b726ac65
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue