mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[BasicAA] Fix typo ScaleForGDC -> ScaleForGCD.
This commit is contained in:
parent
81673f2df8
commit
378b11e2da
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user