[llvm] 4e5c0c2 - [ConstraintElimination] Wrap dump() call in LLVM_DEBUG (NFC).

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 5 05:15:33 PST 2020


Author: Florian Hahn
Date: 2020-12-05T13:14:53Z
New Revision: 4e5c0c2a63e2dff804a32b22d7d815a35a47c8d7

URL: https://github.com/llvm/llvm-project/commit/4e5c0c2a63e2dff804a32b22d7d815a35a47c8d7
DIFF: https://github.com/llvm/llvm-project/commit/4e5c0c2a63e2dff804a32b22d7d815a35a47c8d7.diff

LOG: [ConstraintElimination] Wrap dump() call in LLVM_DEBUG (NFC).

ConstraintSystem::dump only generates output with -debug, but there's no
need to call it without -debug.

Added: 
    

Modified: 
    llvm/lib/Analysis/ConstraintSystem.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/ConstraintSystem.cpp b/llvm/lib/Analysis/ConstraintSystem.cpp
index 3df118495209..f3a28347ded4 100644
--- a/llvm/lib/Analysis/ConstraintSystem.cpp
+++ b/llvm/lib/Analysis/ConstraintSystem.cpp
@@ -133,7 +133,7 @@ void ConstraintSystem::dump() const {
 }
 
 bool ConstraintSystem::mayHaveSolution() {
-  dump();
+  LLVM_DEBUG(dump());
   bool HasSolution = mayHaveSolutionImpl();
   LLVM_DEBUG(dbgs() << (HasSolution ? "sat" : "unsat") << "\n");
   return HasSolution;


        


More information about the llvm-commits mailing list