[llvm] c36d441 - [SDA] Fix -Wunused-function in -DLLVM_ENABLE_ASSERTIONS=off builds
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 4 12:17:40 PDT 2020
Author: Fangrui Song
Date: 2020-10-04T12:17:16-07:00
New Revision: c36d441b6b64e412a975adb1401657870588563c
URL: https://github.com/llvm/llvm-project/commit/c36d441b6b64e412a975adb1401657870588563c
DIFF: https://github.com/llvm/llvm-project/commit/c36d441b6b64e412a975adb1401657870588563c.diff
LOG: [SDA] Fix -Wunused-function in -DLLVM_ENABLE_ASSERTIONS=off builds
Added:
Modified:
llvm/lib/Analysis/SyncDependenceAnalysis.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/SyncDependenceAnalysis.cpp b/llvm/lib/Analysis/SyncDependenceAnalysis.cpp
index 0771bb52c4f4..67a1365b698d 100644
--- a/llvm/lib/Analysis/SyncDependenceAnalysis.cpp
+++ b/llvm/lib/Analysis/SyncDependenceAnalysis.cpp
@@ -417,6 +417,7 @@ struct DivergencePropagator {
}
};
+#ifndef NDEBUG
static void printBlockSet(ConstBlockSet &Blocks, raw_ostream &Out) {
Out << "[";
bool First = true;
@@ -428,6 +429,7 @@ static void printBlockSet(ConstBlockSet &Blocks, raw_ostream &Out) {
}
Out << "]";
}
+#endif
const ControlDivergenceDesc &
SyncDependenceAnalysis::getJoinBlocks(const Instruction &Term) {
More information about the llvm-commits
mailing list