[X86] findEltLoadSrc - fix shift amount variable name. NFCI.

Fix the copy + paste, renaming shift amt from Idx to Amt
This commit is contained in:
Simon Pilgrim 2021-10-23 21:06:03 +01:00
parent 0c7f85d786
commit b09f2ee57c
1 changed files with 4 additions and 4 deletions

View File

@ -8703,10 +8703,10 @@ static bool findEltLoadSrc(SDValue Elt, LoadSDNode *&Ld, int64_t &ByteOffset) {
case ISD::SCALAR_TO_VECTOR: case ISD::SCALAR_TO_VECTOR:
return findEltLoadSrc(Elt.getOperand(0), Ld, ByteOffset); return findEltLoadSrc(Elt.getOperand(0), Ld, ByteOffset);
case ISD::SRL: case ISD::SRL:
if (auto *IdxC = dyn_cast<ConstantSDNode>(Elt.getOperand(1))) { if (auto *AmtC = dyn_cast<ConstantSDNode>(Elt.getOperand(1))) {
uint64_t Idx = IdxC->getZExtValue(); uint64_t Amt = AmtC->getZExtValue();
if ((Idx % 8) == 0 && findEltLoadSrc(Elt.getOperand(0), Ld, ByteOffset)) { if ((Amt % 8) == 0 && findEltLoadSrc(Elt.getOperand(0), Ld, ByteOffset)) {
ByteOffset += Idx / 8; ByteOffset += Amt / 8;
return true; return true;
} }
} }