[llvm] 51da126 - [ConstraintElimination] Fix -Wunused-function in -DLLVM_ENABLE_ASSERTIONS=off build
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 2 10:23:21 PST 2021
Author: Fangrui Song
Date: 2021-02-02T10:23:14-08:00
New Revision: 51da12680f9dd06caa550522f05a4820131887be
URL: https://github.com/llvm/llvm-project/commit/51da12680f9dd06caa550522f05a4820131887be
DIFF: https://github.com/llvm/llvm-project/commit/51da12680f9dd06caa550522f05a4820131887be.diff
LOG: [ConstraintElimination] Fix -Wunused-function in -DLLVM_ENABLE_ASSERTIONS=off build
Added:
Modified:
llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp b/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
index f190ddc29a9b..e5b171fdad8a 100644
--- a/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
@@ -216,6 +216,7 @@ struct StackEntry {
};
} // namespace
+#ifndef NDEBUG
static void dumpWithNames(ConstraintTy &C,
DenseMap<Value *, unsigned> &Value2Index) {
SmallVector<std::string> Names(Value2Index.size(), "");
@@ -226,6 +227,7 @@ static void dumpWithNames(ConstraintTy &C,
CS.addVariableRowFill(C.Coefficients);
CS.dump(Names);
}
+#endif
static bool eliminateConstraints(Function &F, DominatorTree &DT) {
bool Changed = false;
More information about the llvm-commits
mailing list