[ManagedMemoryRewrite] slightly tweak debug output style. [NFC]

llvm-svn: 311361
This commit is contained in:
Siddharth Bhat 2017-08-21 18:58:33 +00:00
parent 557ce3a8b0
commit a8c329b0eb
1 changed files with 10 additions and 10 deletions

View File

@ -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<ConstantAggregateZero>(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<AllocaInst>(&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");