From: Matt Arsenault Date: Mon, 21 Nov 2022 03:07:01 +0000 (-0800) Subject: LoopDeletion: Fix missing newlines in debug printing X-Git-Tag: upstream/17.0.6~26845 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afb3509113f088d84c26399a3f72204f23119d5b;p=platform%2Fupstream%2Fllvm.git LoopDeletion: Fix missing newlines in debug printing --- diff --git a/llvm/lib/Transforms/Scalar/LoopDeletion.cpp b/llvm/lib/Transforms/Scalar/LoopDeletion.cpp index bcc038c..e8e04ff 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())