summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2019-08-01 01:16:08 +0000
committerPhilip Reames <listmail@philipreames.com>2019-08-01 01:16:08 +0000
commit79c27c9464f1605a56d31d2c49d143117ad434a2 (patch)
tree377bcb58632eab5d1e17bc96fdc4c0800bbef824 /llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
parent3594011de0ef11895cb5123f328700463fee5f13 (diff)
downloadbcm5719-llvm-79c27c9464f1605a56d31d2c49d143117ad434a2.tar.gz
bcm5719-llvm-79c27c9464f1605a56d31d2c49d143117ad434a2.zip
Fix a release-only build warning triggered by rL367485
llvm-svn: 367499
Diffstat (limited to 'llvm/lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index 4ccfba94e78..5d1bb6b9390 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -2758,7 +2758,10 @@ bool IndVarSimplify::run(Loop *L) {
// transform them to use integer recurrences.
Changed |= rewriteNonIntegerIVs(L);
+#ifndef NDEBUG
+ // Used below for a consistency check only
const SCEV *BackedgeTakenCount = SE->getBackedgeTakenCount(L);
+#endif
// Create a rewriter object which we'll use to transform the code with.
SCEVExpander Rewriter(*SE, DL, "indvars");
OpenPOWER on IntegriCloud