Skip to content

Commit 6088dce

Browse files
committed
AddIndex -> AddIndexToKnown
1 parent e6240c5 commit 6088dce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@ static void computeKnownBitsFromOperator(const Operator *I,
14291429
unsigned IndexWidth = Q.DL.getIndexTypeSizeInBits(I->getType());
14301430
APInt AccConstIndices(IndexWidth, 0);
14311431

1432-
auto AddIndex = [&](KnownBits IndexBits) {
1432+
auto AddIndexToKnown = [&](KnownBits IndexBits) {
14331433
if (IndexWidth == BitWidth) {
14341434
// Note that inbounds does *not* guarantee nsw for the addition, as only
14351435
// the offset is signed, while the base address is unsigned.
@@ -1503,10 +1503,10 @@ static void computeKnownBitsFromOperator(const Operator *I,
15031503
ScalingFactor =
15041504
KnownBits::makeConstant(APInt(IndexWidth, StrideInBytes));
15051505
}
1506-
AddIndex(KnownBits::mul(IndexBits, ScalingFactor));
1506+
AddIndexToKnown(KnownBits::mul(IndexBits, ScalingFactor));
15071507
}
15081508
if (!Known.isUnknown() && !AccConstIndices.isZero())
1509-
AddIndex(KnownBits::makeConstant(AccConstIndices));
1509+
AddIndexToKnown(KnownBits::makeConstant(AccConstIndices));
15101510
break;
15111511
}
15121512
case Instruction::PHI: {

0 commit comments

Comments
 (0)