From 93fe24d5fcade78207ddf48b89d96616fbb187f1 Mon Sep 17 00:00:00 2001 From: Sanjoy Das Date: Thu, 8 Oct 2015 03:45:58 +0000 Subject: [PATCH] [SCEV] Use `auto *` instead of `auto`; NFCI (As prescribed by the coding style document) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249653 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/ScalarEvolution.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 3a4de1aec6d..fbf6985916c 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -1616,12 +1616,12 @@ const SCEV *ScalarEvolution::getSignExtendExpr(const SCEV *Op, } // sext(C1 + (C2 * x)) --> C1 + sext(C2 * x) if C1 < C2 - if (auto SA = dyn_cast(Op)) { + if (auto *SA = dyn_cast(Op)) { if (SA->getNumOperands() == 2) { - auto SC1 = dyn_cast(SA->getOperand(0)); - auto SMul = dyn_cast(SA->getOperand(1)); + auto *SC1 = dyn_cast(SA->getOperand(0)); + auto *SMul = dyn_cast(SA->getOperand(1)); if (SMul && SC1) { - if (auto SC2 = dyn_cast(SMul->getOperand(0))) { + if (auto *SC2 = dyn_cast(SMul->getOperand(0))) { const APInt &C1 = SC1->getValue()->getValue(); const APInt &C2 = SC2->getValue()->getValue(); if (C1.isStrictlyPositive() && C2.isStrictlyPositive() && @@ -1735,8 +1735,8 @@ const SCEV *ScalarEvolution::getSignExtendExpr(const SCEV *Op, // If Start and Step are constants, check if we can apply this // transformation: // sext{C1,+,C2} --> C1 + sext{0,+,C2} if C1 < C2 - auto SC1 = dyn_cast(Start); - auto SC2 = dyn_cast(Step); + auto *SC1 = dyn_cast(Start); + auto *SC2 = dyn_cast(Step); if (SC1 && SC2) { const APInt &C1 = SC1->getValue()->getValue(); const APInt &C2 = SC2->getValue()->getValue(); @@ -8525,7 +8525,7 @@ void ScalarEvolution::computeAccessFunctions( if (Sizes.empty()) return; - if (auto AR = dyn_cast(Expr)) + if (auto *AR = dyn_cast(Expr)) if (!AR->isAffine()) return; -- 2.34.1