[llvm] afb3509 - LoopDeletion: Fix missing newlines in debug printing
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 22 08:12:05 PST 2022
Author: Matt Arsenault
Date: 2022-11-22T11:12:00-05:00
New Revision: afb3509113f088d84c26399a3f72204f23119d5b
URL: https://github.com/llvm/llvm-project/commit/afb3509113f088d84c26399a3f72204f23119d5b
DIFF: https://github.com/llvm/llvm-project/commit/afb3509113f088d84c26399a3f72204f23119d5b.diff
LOG: LoopDeletion: Fix missing newlines in debug printing
Added:
Modified:
llvm/lib/Transforms/Scalar/LoopDeletion.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/LoopDeletion.cpp b/llvm/lib/Transforms/Scalar/LoopDeletion.cpp
index bcc038cb25c4d..e8e04ff478bfa 100644
--- a/llvm/lib/Transforms/Scalar/LoopDeletion.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopDeletion.cpp
@@ -455,7 +455,7 @@ static LoopDeletionResult deleteLoopIfDead(Loop *L, DominatorTree &DT,
BasicBlock *ExitBlock = L->getUniqueExitBlock();
if (ExitBlock && isLoopNeverExecuted(L)) {
- LLVM_DEBUG(dbgs() << "Loop is proven to never execute, delete it!");
+ LLVM_DEBUG(dbgs() << "Loop is proven to never execute, delete it!\n");
// We need to forget the loop before setting the incoming values of the exit
// phis to poison, so we properly invalidate the SCEV expressions for those
// phis.
@@ -496,7 +496,7 @@ static LoopDeletionResult deleteLoopIfDead(Loop *L, DominatorTree &DT,
: LoopDeletionResult::Unmodified;
}
- LLVM_DEBUG(dbgs() << "Loop is invariant, delete it!");
+ LLVM_DEBUG(dbgs() << "Loop is invariant, delete it!\n");
ORE.emit([&]() {
return OptimizationRemark(DEBUG_TYPE, "Invariant", L->getStartLoc(),
L->getHeader())
More information about the llvm-commits
mailing list