[llvm] r247748 - [IndVars] Rename variable; NFC.

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 16:45:36 PDT 2015


Author: sanjoy
Date: Tue Sep 15 18:45:35 2015
New Revision: 247748

URL: http://llvm.org/viewvc/llvm-project?rev=247748&view=rev
Log:
[IndVars] Rename variable; NFC.

Modified:
    llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp?rev=247748&r1=247747&r2=247748&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Tue Sep 15 18:45:35 2015
@@ -508,8 +508,8 @@ Value *IndVarSimplify::ExpandSCEVIfNeede
                                           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);




More information about the llvm-commits mailing list