[polly] r311549 - [MaximumStaticExpansion] Avoid warning in release builds.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 23 05:50:02 PDT 2017


Author: meinersbur
Date: Wed Aug 23 05:50:02 2017
New Revision: 311549

URL: http://llvm.org/viewvc/llvm-project?rev=311549&view=rev
Log:
[MaximumStaticExpansion] Avoid warning in release builds.

Conditionally compile function only used in an assert().

Modified:
    polly/trunk/lib/Transform/MaximalStaticExpansion.cpp

Modified: polly/trunk/lib/Transform/MaximalStaticExpansion.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/MaximalStaticExpansion.cpp?rev=311549&r1=311548&r2=311549&view=diff
==============================================================================
--- polly/trunk/lib/Transform/MaximalStaticExpansion.cpp (original)
+++ polly/trunk/lib/Transform/MaximalStaticExpansion.cpp Wed Aug 23 05:50:02 2017
@@ -96,6 +96,7 @@ private:
 
 namespace {
 
+#ifndef NDEBUG
 /// Whether a dimension of a set is bounded (lower and upper) by a constant,
 /// i.e. there are two constants Min and Max, such that every value x of the
 /// chosen dimensions is Min <= x <= Max.
@@ -107,6 +108,7 @@ bool isDimBoundedByConstant(isl::set Set
   Set = Set.project_out(isl::dim::set, 1, SetDims - 1);
   return bool(Set.is_bounded());
 }
+#endif
 
 /// If @p PwAff maps to a constant, return said constant. If @p Max/@p Min, it
 /// can also be a piecewise constant and it would return the minimum/maximum




More information about the llvm-commits mailing list