summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2017-08-23 12:50:02 +0000
committerMichael Kruse <llvm@meinersbur.de>2017-08-23 12:50:02 +0000
commita1579aab46ff3a9409edfaf7552432b9d055e2ba (patch)
treef00a7e635c95faa108f8a917cd08209ad62d1f16
parent3044dc51cff4d51d8a837ded87434baad00f9f8a (diff)
downloadbcm5719-llvm-a1579aab46ff3a9409edfaf7552432b9d055e2ba.tar.gz
bcm5719-llvm-a1579aab46ff3a9409edfaf7552432b9d055e2ba.zip
[MaximumStaticExpansion] Avoid warning in release builds.
Conditionally compile function only used in an assert(). llvm-svn: 311549
-rw-r--r--polly/lib/Transform/MaximalStaticExpansion.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/polly/lib/Transform/MaximalStaticExpansion.cpp b/polly/lib/Transform/MaximalStaticExpansion.cpp
index 695ca6d76cd..1060f7b8cd6 100644
--- a/polly/lib/Transform/MaximalStaticExpansion.cpp
+++ b/polly/lib/Transform/MaximalStaticExpansion.cpp
@@ -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
OpenPOWER on IntegriCloud