[llvm] dc4299a - [BasicAA] Fix typo ScaleForGDC -> ScaleForGCD.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 1 01:58:59 PDT 2021
Author: Florian Hahn
Date: 2021-07-01T09:58:38+01:00
New Revision: dc4299a7f3ad7e4fa3c310d585de4e46bde58d16
URL: https://github.com/llvm/llvm-project/commit/dc4299a7f3ad7e4fa3c310d585de4e46bde58d16
DIFF: https://github.com/llvm/llvm-project/commit/dc4299a7f3ad7e4fa3c310d585de4e46bde58d16.diff
LOG: [BasicAA] Fix typo ScaleForGDC -> ScaleForGCD.
Added:
Modified:
llvm/lib/Analysis/BasicAliasAnalysis.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/BasicAliasAnalysis.cpp b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
index d79df622ee501..357772c9c4f2e 100644
--- a/llvm/lib/Analysis/BasicAliasAnalysis.cpp
+++ b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
@@ -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
More information about the llvm-commits
mailing list