Skip to content

Commit b09f2ee

Browse files
committed
[X86] findEltLoadSrc - fix shift amount variable name. NFCI.
Fix the copy + paste, renaming shift amt from Idx to Amt
1 parent 0c7f85d commit b09f2ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8703,10 +8703,10 @@ static bool findEltLoadSrc(SDValue Elt, LoadSDNode *&Ld, int64_t &ByteOffset) {
87038703
case ISD::SCALAR_TO_VECTOR:
87048704
return findEltLoadSrc(Elt.getOperand(0), Ld, ByteOffset);
87058705
case ISD::SRL:
8706-
if (auto *IdxC = dyn_cast<ConstantSDNode>(Elt.getOperand(1))) {
8707-
uint64_t Idx = IdxC->getZExtValue();
8708-
if ((Idx % 8) == 0 && findEltLoadSrc(Elt.getOperand(0), Ld, ByteOffset)) {
8709-
ByteOffset += Idx / 8;
8706+
if (auto *AmtC = dyn_cast<ConstantSDNode>(Elt.getOperand(1))) {
8707+
uint64_t Amt = AmtC->getZExtValue();
8708+
if ((Amt % 8) == 0 && findEltLoadSrc(Elt.getOperand(0), Ld, ByteOffset)) {
8709+
ByteOffset += Amt / 8;
87108710
return true;
87118711
}
87128712
}

0 commit comments

Comments
 (0)