From 3f6034f46a9846dae434abadd489f836a4ad0599 Mon Sep 17 00:00:00 2001 From: Serguei Katkov Date: Sat, 28 Apr 2018 06:41:35 +0000 Subject: [PATCH] [SCEV] Touch the unsused stats variables for product build. This is a fix by elimination compiler warnings considered as errors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331103 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/ScalarEvolution.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 3b219fa6736..955fc1e4223 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -6512,6 +6512,9 @@ ScalarEvolution::getBackedgeTakenInfo(const Loop *L) { // must be cleared in this scope. BackedgeTakenInfo Result = computeBackedgeTakenCount(L); + // In product build, there are no usage of statistic. + (void)NumTripCountsComputed; + (void)NumTripCountsNotComputed; #if LLVM_ENABLE_STATS || !defined(NDEBUG) const SCEV *BEExact = Result.getExact(L, this); if (BEExact != getCouldNotCompute()) { -- 2.11.0