From d812257e6d8371cd28a271730e042c55f9e18009 Mon Sep 17 00:00:00 2001 From: Siddharth Bhat Date: Mon, 21 Aug 2017 18:58:33 +0000 Subject: [PATCH] [ManagedMemoryRewrite] slightly tweak debug output style. [NFC] git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@311361 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/ManagedMemoryRewrite.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/CodeGen/ManagedMemoryRewrite.cpp b/lib/CodeGen/ManagedMemoryRewrite.cpp index 055f1a26..4546dcb4 100644 --- a/lib/CodeGen/ManagedMemoryRewrite.cpp +++ b/lib/CodeGen/ManagedMemoryRewrite.cpp @@ -124,8 +124,8 @@ static void expandConstantExpr(ConstantExpr *Cur, PollyIRBuilder &Builder, Instruction *I = Cur->getAsInstruction(); assert(I && "unable to convert ConstantExpr to Instruction"); - DEBUG(dbgs() << "Expanding ConstantExpression: " << *Cur - << " | in Instruction: " << *I << "\n";); + DEBUG(dbgs() << "Expanding ConstantExpression: (" << *Cur + << ") in Instruction: (" << *I << ")\n";); // Invalidate `Cur` so that no one after this point uses `Cur`. Rather, // they should mutate `I`. @@ -209,8 +209,8 @@ replaceGlobalArray(Module &M, const DataLayout &DL, GlobalVariable &Array, Array.hasInternalLinkage() || IgnoreLinkageForGlobals; if (!OnlyVisibleInsideModule) { - DEBUG(dbgs() << "Not rewriting " << Array - << " to managed memory " + DEBUG(dbgs() << "Not rewriting (" << Array + << ") to managed memory " "because it could be visible externally. To force rewrite, " "use -polly-acc-rewrite-ignore-linkage-for-globals.\n"); return; @@ -218,8 +218,8 @@ replaceGlobalArray(Module &M, const DataLayout &DL, GlobalVariable &Array, if (!Array.hasInitializer() || !isa(Array.getInitializer())) { - DEBUG(dbgs() << "Not rewriting " << Array - << " to managed memory " + DEBUG(dbgs() << "Not rewriting (" << Array + << ") to managed memory " "because it has an initializer which is " "not a zeroinitializer.\n"); return; @@ -288,14 +288,14 @@ static void getAllocasToBeManaged(Function &F, auto *Alloca = dyn_cast(&I); if (!Alloca) continue; - DEBUG(dbgs() << "Checking if " << *Alloca << "may be captured: "); + DEBUG(dbgs() << "Checking if (" << *Alloca << ") may be captured: "); if (PointerMayBeCaptured(Alloca, /* ReturnCaptures */ false, /* StoreCaptures */ true)) { Allocas.insert(Alloca); - DEBUG(dbgs() << "YES (captured)\n"); + DEBUG(dbgs() << "YES (captured).\n"); } else { - DEBUG(dbgs() << "NO (not captured)\n"); + DEBUG(dbgs() << "NO (not captured).\n"); } } } @@ -303,7 +303,7 @@ static void getAllocasToBeManaged(Function &F, static void rewriteAllocaAsManagedMemory(AllocaInst *Alloca, const DataLayout &DL) { - DEBUG(dbgs() << "rewriting: " << *Alloca << " to managed mem.\n"); + DEBUG(dbgs() << "rewriting: (" << *Alloca << ") to managed mem.\n"); Module *M = Alloca->getModule(); assert(M && "Alloca does not have a module"); -- 2.11.4.GIT