[IndVars] Rename variable; NFC.
authorSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 15 Sep 2015 23:45:35 +0000 (23:45 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 15 Sep 2015 23:45:35 +0000 (23:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247748 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/IndVarSimplify.cpp

index aad50160f52552585ef85f7a3fb822115cced4e8..c9fcf8ddf56f8be211300075894ff27ec950cfcf 100644 (file)
@@ -508,8 +508,8 @@ Value *IndVarSimplify::ExpandSCEVIfNeeded(SCEVExpander &Rewriter, const SCEV *S,
                                           Type *ResultTy) {
   // Before expanding S into an expensive LLVM expression, see if we can use an
   // already existing value as the expansion for S.
-  if (Value *RetValue = Rewriter.findExistingExpansion(S, InsertPt, L))
-    return RetValue;
+  if (Value *ExistingValue = Rewriter.findExistingExpansion(S, InsertPt, L))
+    return ExistingValue;
 
   // We didn't find anything, fall back to using SCEVExpander.
   return Rewriter.expandCodeFor(S, ResultTy, InsertPt);