[llvm] 6315765 - [ConstantHoisting] remove a LLVM_DEBUG statement

Nick Desaulniers via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 11 09:30:32 PDT 2023


Author: Nick Desaulniers
Date: 2023-07-11T09:30:15-07:00
New Revision: 631576561ee2d3907f8038dac50e08b266311e12

URL: https://github.com/llvm/llvm-project/commit/631576561ee2d3907f8038dac50e08b266311e12
DIFF: https://github.com/llvm/llvm-project/commit/631576561ee2d3907f8038dac50e08b266311e12.diff

LOG: [ConstantHoisting] remove a LLVM_DEBUG statement

There is no need to print the entire function after a transform via
LLVM_DEBUG statements.  These can be emulated via:
$ llc -print-after=consthoist -filter-print-funcs=<function name>

Otherwise, this makes the output of
$ llc -debug-only=consthoist
too verbose.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D154904

Added: 
    

Modified: 
    llvm/lib/Transforms/Scalar/ConstantHoisting.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp b/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
index 9d1edd93dfb4dd..4ef51703d1c2d8 100644
--- a/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
+++ b/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
@@ -155,11 +155,6 @@ bool ConstantHoistingLegacyPass::runOnFunction(Function &Fn) {
                    Fn.getEntryBlock(),
                    &getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI());
 
-  if (MadeChange) {
-    LLVM_DEBUG(dbgs() << "********** Function after Constant Hoisting: "
-                      << Fn.getName() << '\n');
-    LLVM_DEBUG(dbgs() << Fn);
-  }
   LLVM_DEBUG(dbgs() << "********** End Constant Hoisting **********\n");
 
   return MadeChange;


        


More information about the llvm-commits mailing list