summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKit Barton <kbarton@ca.ibm.com>2019-04-25 02:10:02 +0000
committerKit Barton <kbarton@ca.ibm.com>2019-04-25 02:10:02 +0000
commit8e64f0a64988df6e69f6aa847fec98d61d8c7fe3 (patch)
treeb17bf594687b4e84aec0a5f50bcd89deecaf632c
parent7c8647b26f053c01071b8efb3a98d0cd1229f413 (diff)
downloadbcm5719-llvm-8e64f0a64988df6e69f6aa847fec98d61d8c7fe3.tar.gz
bcm5719-llvm-8e64f0a64988df6e69f6aa847fec98d61d8c7fe3.zip
Fix unused variable warning in LoopFusion pass.
Do not wrap the contents of printFusionCandidates in the LLVM_DEBUG macro. This fixes an unused variable warning generated when compiling without asserts but with -DENABLE_LLVM_DUMP. Differential Revision: https://reviews.llvm.org/D61035 llvm-svn: 359161
-rw-r--r--llvm/lib/Transforms/Scalar/LoopFuse.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopFuse.cpp b/llvm/lib/Transforms/Scalar/LoopFuse.cpp
index bf45e5a8e75..0bc2bcff2ae 100644
--- a/llvm/lib/Transforms/Scalar/LoopFuse.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopFuse.cpp
@@ -311,16 +311,14 @@ inline llvm::raw_ostream &operator<<(llvm::raw_ostream &OS,
return OS;
}
-#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+#if !defined(NDEBUG)
static void
printFusionCandidates(const FusionCandidateCollection &FusionCandidates) {
- LLVM_DEBUG(dbgs() << "Fusion Candidates: \n");
+ dbgs() << "Fusion Candidates: \n";
for (const auto &CandidateSet : FusionCandidates) {
- LLVM_DEBUG({
- dbgs() << "*** Fusion Candidate Set ***\n";
- dbgs() << CandidateSet;
- dbgs() << "****************************\n";
- });
+ dbgs() << "*** Fusion Candidate Set ***\n";
+ dbgs() << CandidateSet;
+ dbgs() << "****************************\n";
}
}
#endif
OpenPOWER on IntegriCloud