[PATCH] D61035: Fix unused variable warning in LoopFusion pass

Kit Barton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 24 19:08:11 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL359161: Fix unused variable warning in LoopFusion pass. (authored by kbarton, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D61035?vs=196300&id=196564#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61035/new/

https://reviews.llvm.org/D61035

Files:
  llvm/trunk/lib/Transforms/Scalar/LoopFuse.cpp


Index: llvm/trunk/lib/Transforms/Scalar/LoopFuse.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopFuse.cpp
+++ llvm/trunk/lib/Transforms/Scalar/LoopFuse.cpp
@@ -311,16 +311,14 @@
   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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61035.196564.patch
Type: text/x-patch
Size: 870 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190425/44d3e58f/attachment.bin>


More information about the llvm-commits mailing list