summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2018-06-14 17:14:01 +0000
committerJustin Lebar <jlebar@google.com>2018-06-14 17:14:01 +0000
commitbdb0a58c91d0ff716bba49820d2a7fa007243c09 (patch)
tree55850140f5e3c5d6ffcfb094f5f3037e6f433847
parentfe455464eb1702653e8b835a79f03c48007c5a19 (diff)
downloadbcm5719-llvm-bdb0a58c91d0ff716bba49820d2a7fa007243c09.tar.gz
bcm5719-llvm-bdb0a58c91d0ff716bba49820d2a7fa007243c09.zip
[SCEV] Fix a variable name, NFC.
llvm-svn: 334738
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index d49135a1b49..a2a2d8bbb95 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -1768,13 +1768,13 @@ ScalarEvolution::getZeroExtendExpr(const SCEV *Op, Type *Ty, unsigned Depth) {
}
}
- if (auto *SA = dyn_cast<SCEVMulExpr>(Op)) {
+ if (auto *SM = dyn_cast<SCEVMulExpr>(Op)) {
// zext((A * B * ...)<nuw>) --> (zext(A) * zext(B) * ...)<nuw>
- if (SA->hasNoUnsignedWrap()) {
+ if (SM->hasNoUnsignedWrap()) {
// If the multiply does not unsign overflow then we can, by definition,
// commute the zero extension with the multiply operation.
SmallVector<const SCEV *, 4> Ops;
- for (const auto *Op : SA->operands())
+ for (const auto *Op : SM->operands())
Ops.push_back(getZeroExtendExpr(Op, Ty, Depth + 1));
return getMulExpr(Ops, SCEV::FlagNUW, Depth + 1);
}
@@ -1791,10 +1791,10 @@ ScalarEvolution::getZeroExtendExpr(const SCEV *Op, Type *Ty, unsigned Depth) {
// = zext((2^K * (trunc X to i{N-K}))<nuw>) to iM
// = (2^K * (zext(trunc X to i{N-K}) to iM))<nuw>.
//
- if (SA->getNumOperands() == 2)
- if (auto *MulLHS = dyn_cast<SCEVConstant>(SA->getOperand(0)))
+ if (SM->getNumOperands() == 2)
+ if (auto *MulLHS = dyn_cast<SCEVConstant>(SM->getOperand(0)))
if (MulLHS->getAPInt().isPowerOf2())
- if (auto *TruncRHS = dyn_cast<SCEVTruncateExpr>(SA->getOperand(1))) {
+ if (auto *TruncRHS = dyn_cast<SCEVTruncateExpr>(SM->getOperand(1))) {
int NewTruncBits = getTypeSizeInBits(TruncRHS->getType()) -
MulLHS->getAPInt().logBase2();
Type *NewTruncTy = IntegerType::get(getContext(), NewTruncBits);
OpenPOWER on IntegriCloud