[MaximumStaticExpansion] Avoid warning in release builds.

Conditionally compile function only used in an assert().

llvm-svn: 311549
This commit is contained in:
Michael Kruse 2017-08-23 12:50:02 +00:00
parent 3044dc51cf
commit a1579aab46
1 changed files with 2 additions and 0 deletions

View File

@ -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, unsigned dim) {
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