[llvm] b09f2ee - [X86] findEltLoadSrc - fix shift amount variable name. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 23 13:24:56 PDT 2021
Author: Simon Pilgrim
Date: 2021-10-23T21:24:37+01:00
New Revision: b09f2ee57c4782ac6a7d8fbfe975eb245a0a9e8d
URL: https://github.com/llvm/llvm-project/commit/b09f2ee57c4782ac6a7d8fbfe975eb245a0a9e8d
DIFF: https://github.com/llvm/llvm-project/commit/b09f2ee57c4782ac6a7d8fbfe975eb245a0a9e8d.diff
LOG: [X86] findEltLoadSrc - fix shift amount variable name. NFCI.
Fix the copy + paste, renaming shift amt from Idx to Amt
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index a4a10cb563a4e..a82c200bcacfc 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -8703,10 +8703,10 @@ static bool findEltLoadSrc(SDValue Elt, LoadSDNode *&Ld, int64_t &ByteOffset) {
case ISD::SCALAR_TO_VECTOR:
return findEltLoadSrc(Elt.getOperand(0), Ld, ByteOffset);
case ISD::SRL:
- if (auto *IdxC = dyn_cast<ConstantSDNode>(Elt.getOperand(1))) {
- uint64_t Idx = IdxC->getZExtValue();
- if ((Idx % 8) == 0 && findEltLoadSrc(Elt.getOperand(0), Ld, ByteOffset)) {
- ByteOffset += Idx / 8;
+ if (auto *AmtC = dyn_cast<ConstantSDNode>(Elt.getOperand(1))) {
+ uint64_t Amt = AmtC->getZExtValue();
+ if ((Amt % 8) == 0 && findEltLoadSrc(Elt.getOperand(0), Ld, ByteOffset)) {
+ ByteOffset += Amt / 8;
return true;
}
}
More information about the llvm-commits
mailing list