LoopDeletion: Fix missing newlines in debug printing
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 21 Nov 2022 03:07:01 +0000 (19:07 -0800)
committerMatt Arsenault <arsenm2@gmail.com>
Tue, 22 Nov 2022 16:12:00 +0000 (11:12 -0500)
llvm/lib/Transforms/Scalar/LoopDeletion.cpp

index bcc038c..e8e04ff 100644 (file)
@@ -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())