[llvm] 804a39a - [NFC,StackSafety] Rename some variables
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed May 27 13:33:40 PDT 2020
Author: Vitaly Buka
Date: 2020-05-27T13:33:28-07:00
New Revision: 804a39a201567f5f615246bf99cf8e8ff7e006c8
URL: https://github.com/llvm/llvm-project/commit/804a39a201567f5f615246bf99cf8e8ff7e006c8
DIFF: https://github.com/llvm/llvm-project/commit/804a39a201567f5f615246bf99cf8e8ff7e006c8.diff
LOG: [NFC,StackSafety] Rename some variables
Added:
Modified:
llvm/lib/Analysis/StackSafetyAnalysis.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/StackSafetyAnalysis.cpp b/llvm/lib/Analysis/StackSafetyAnalysis.cpp
index d544f71c7308..aead4ec9fd16 100644
--- a/llvm/lib/Analysis/StackSafetyAnalysis.cpp
+++ b/llvm/lib/Analysis/StackSafetyAnalysis.cpp
@@ -249,17 +249,17 @@ StackSafetyLocalAnalysis::getAccessRange(Value *Addr, Value *Base,
return ConstantRange::getEmpty(PointerSize);
assert(!isUnsafe(SizeRange));
- ConstantRange AccessRange = offsetFrom(Addr, Base);
- if (isUnsafe(AccessRange))
+ ConstantRange Offsets = offsetFrom(Addr, Base);
+ if (isUnsafe(Offsets))
return UnknownRange;
- if (AccessRange.signedAddMayOverflow(SizeRange) !=
+ if (Offsets.signedAddMayOverflow(SizeRange) !=
ConstantRange::OverflowResult::NeverOverflows)
return UnknownRange;
- AccessRange = AccessRange.add(SizeRange);
- if (isUnsafe(AccessRange))
+ Offsets = Offsets.add(SizeRange);
+ if (isUnsafe(Offsets))
return UnknownRange;
- return AccessRange;
+ return Offsets;
}
ConstantRange StackSafetyLocalAnalysis::getAccessRange(Value *Addr, Value *Base,
@@ -284,13 +284,13 @@ ConstantRange StackSafetyLocalAnalysis::getMemIntrinsicAccessRange(
const SCEV *Expr =
SE.getTruncateOrZeroExtend(SE.getSCEV(MI->getLength()), CalculationTy);
- ConstantRange LenRange = SE.getSignedRange(Expr);
- assert(!isUnsafe(LenRange));
- if (LenRange.getUpper().isNegative())
+ ConstantRange Sizes = SE.getSignedRange(Expr);
+ assert(!isUnsafe(Sizes));
+ if (Sizes.getUpper().isNegative())
return UnknownRange;
- LenRange = LenRange.sextOrTrunc(PointerSize);
+ Sizes = Sizes.sextOrTrunc(PointerSize);
ConstantRange SizeRange(APInt::getNullValue(PointerSize),
- LenRange.getUpper() - 1);
+ Sizes.getUpper() - 1);
return getAccessRange(U, Base, SizeRange);
}
More information about the llvm-commits
mailing list