From bdb0a58c91d0ff716bba49820d2a7fa007243c09 Mon Sep 17 00:00:00 2001 From: Justin Lebar Date: Thu, 14 Jun 2018 17:14:01 +0000 Subject: [PATCH] [SCEV] Fix a variable name, NFC. llvm-svn: 334738 --- llvm/lib/Analysis/ScalarEvolution.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index d49135a..a2a2d8b 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(Op)) { + if (auto *SM = dyn_cast(Op)) { // zext((A * B * ...)) --> (zext(A) * zext(B) * ...) - 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 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}))) to iM // = (2^K * (zext(trunc X to i{N-K}) to iM)). // - if (SA->getNumOperands() == 2) - if (auto *MulLHS = dyn_cast(SA->getOperand(0))) + if (SM->getNumOperands() == 2) + if (auto *MulLHS = dyn_cast(SM->getOperand(0))) if (MulLHS->getAPInt().isPowerOf2()) - if (auto *TruncRHS = dyn_cast(SA->getOperand(1))) { + if (auto *TruncRHS = dyn_cast(SM->getOperand(1))) { int NewTruncBits = getTypeSizeInBits(TruncRHS->getType()) - MulLHS->getAPInt().logBase2(); Type *NewTruncTy = IntegerType::get(getContext(), NewTruncBits); -- 2.7.4