summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2015-09-15 23:45:35 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2015-09-15 23:45:35 +0000
commit0ce51a92a8c51a58d62fcc46121bce1146f44e31 (patch)
tree1d7cea58420b05ee0ab1ac5aae98046726a4f60b /llvm/lib/Transforms/Scalar
parent192f21222f7c5ef0c1dae8d6de67f6dbeed373ef (diff)
downloadbcm5719-llvm-0ce51a92a8c51a58d62fcc46121bce1146f44e31.tar.gz
bcm5719-llvm-0ce51a92a8c51a58d62fcc46121bce1146f44e31.zip
[IndVars] Rename variable; NFC.
llvm-svn: 247748
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index aad50160f52..c9fcf8ddf56 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -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);
OpenPOWER on IntegriCloud