[llvm] r331103 - [SCEV] Touch the unsused stats variables for product build.
Serguei Katkov via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 27 23:41:36 PDT 2018
Author: skatkov
Date: Fri Apr 27 23:41:35 2018
New Revision: 331103
URL: http://llvm.org/viewvc/llvm-project?rev=331103&view=rev
Log:
[SCEV] Touch the unsused stats variables for product build.
This is a fix by elimination compiler warnings considered as errors.
Modified:
llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=331103&r1=331102&r2=331103&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Fri Apr 27 23:41:35 2018
@@ -6512,6 +6512,9 @@ ScalarEvolution::getBackedgeTakenInfo(co
// 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()) {
More information about the llvm-commits
mailing list