OSDN Git Service

[SCEV] Touch the unsused stats variables for product build.
authorSerguei Katkov <serguei.katkov@azul.com>
Sat, 28 Apr 2018 06:41:35 +0000 (06:41 +0000)
committerSerguei Katkov <serguei.katkov@azul.com>
Sat, 28 Apr 2018 06:41:35 +0000 (06:41 +0000)
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

index 3b219fa..955fc1e 100644 (file)
@@ -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()) {