1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

[BasicAA] Fix typo ScaleForGDC -> ScaleForGCD.

This commit is contained in:
Florian Hahn 2021-07-01 09:48:07 +01:00
parent 81673f2df8
commit 378b11e2da

View File

@ -1148,15 +1148,15 @@ AliasResult BasicAAResult::aliasGEP(
bool AllNonPositive = DecompGEP1.Offset.isNonPositive();
for (unsigned i = 0, e = DecompGEP1.VarIndices.size(); i != e; ++i) {
APInt Scale = DecompGEP1.VarIndices[i].Scale;
APInt ScaleForGDC = DecompGEP1.VarIndices[i].Scale;
APInt ScaleForGCD = DecompGEP1.VarIndices[i].Scale;
if (!DecompGEP1.VarIndices[i].IsNSW)
ScaleForGDC = APInt::getOneBitSet(Scale.getBitWidth(),
ScaleForGCD = APInt::getOneBitSet(Scale.getBitWidth(),
Scale.countTrailingZeros());
if (i == 0)
GCD = ScaleForGDC.abs();
GCD = ScaleForGCD.abs();
else
GCD = APIntOps::GreatestCommonDivisor(GCD, ScaleForGDC.abs());
GCD = APIntOps::GreatestCommonDivisor(GCD, ScaleForGCD.abs());
if (AllNonNegative || AllNonPositive) {
// If the Value could change between cycles, then any reasoning about