[PATCH] D154904: [ConstantHoisting] remove a LLVM_DEBUG statement
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 10 15:48:56 PDT 2023
nickdesaulniers created this revision.
Herald added a subscriber: hiraditya.
Herald added a reviewer: ributzka.
Herald added a project: All.
nickdesaulniers requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D154904
Files:
llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
Index: llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
+++ llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
@@ -155,11 +155,6 @@
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154904.538861.patch
Type: text/x-patch
Size: 645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230710/d84a450c/attachment.bin>
More information about the llvm-commits
mailing list