[polly] 927050a - [Polly] Fix -Wunused-function in -DLLVM_ENABLE_ASSERTIONS=off builds
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 24 19:56:49 PDT 2021
Author: Fangrui Song
Date: 2021-03-24T19:56:43-07:00
New Revision: 927050af532611dfbb62c2bace1a20fec1b348ee
URL: https://github.com/llvm/llvm-project/commit/927050af532611dfbb62c2bace1a20fec1b348ee
DIFF: https://github.com/llvm/llvm-project/commit/927050af532611dfbb62c2bace1a20fec1b348ee.diff
LOG: [Polly] Fix -Wunused-function in -DLLVM_ENABLE_ASSERTIONS=off builds
Added:
Modified:
polly/lib/Transform/ScheduleOptimizer.cpp
Removed:
################################################################################
diff --git a/polly/lib/Transform/ScheduleOptimizer.cpp b/polly/lib/Transform/ScheduleOptimizer.cpp
index acdfde1fa5d2..913828994cb3 100644
--- a/polly/lib/Transform/ScheduleOptimizer.cpp
+++ b/polly/lib/Transform/ScheduleOptimizer.cpp
@@ -1723,6 +1723,7 @@ class IslScheduleOptimizerWrapperPass : public ScopPass {
char IslScheduleOptimizerWrapperPass::ID = 0;
+#ifndef NDEBUG
static void printSchedule(llvm::raw_ostream &OS, const isl::schedule &Schedule,
StringRef Desc) {
isl::ctx Ctx = Schedule.get_ctx();
@@ -1734,6 +1735,7 @@ static void printSchedule(llvm::raw_ostream &OS, const isl::schedule &Schedule,
free(Str);
isl_printer_free(P);
}
+#endif
/// Collect statistics for the schedule tree.
///
More information about the llvm-commits
mailing list