mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 07:29:55 +00:00
Fixed up some DEBUG messages where I was putting in the text of a message the method where it was being called when I should have just prefixed the actual message with Pass::Method.
Additionally I fixed some whitespace issues. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171534 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
608467d1e1
commit
5c0ae4727f
@ -995,7 +995,7 @@ bool ObjCARCAPElim::OptimizeBB(BasicBlock *BB) {
|
|||||||
// zap the pair.
|
// zap the pair.
|
||||||
if (Push && cast<CallInst>(Inst)->getArgOperand(0) == Push) {
|
if (Push && cast<CallInst>(Inst)->getArgOperand(0) == Push) {
|
||||||
Changed = true;
|
Changed = true;
|
||||||
DEBUG(dbgs() << "ObjCARCAPElim: OptimizeBB: Zapping push pop autorelease pair:\n"
|
DEBUG(dbgs() << "ObjCARCAPElim::OptimizeBB: Zapping push pop autorelease pair:\n"
|
||||||
<< " Pop: " << *Inst << "\n"
|
<< " Pop: " << *Inst << "\n"
|
||||||
<< " Push: " << *Push << "\n");
|
<< " Push: " << *Push << "\n");
|
||||||
Inst->eraseFromParent();
|
Inst->eraseFromParent();
|
||||||
@ -2286,7 +2286,7 @@ void ObjCARCOpt::OptimizeIndividualCalls(Function &F) {
|
|||||||
for (inst_iterator I = inst_begin(&F), E = inst_end(&F); I != E; ) {
|
for (inst_iterator I = inst_begin(&F), E = inst_end(&F); I != E; ) {
|
||||||
Instruction *Inst = &*I++;
|
Instruction *Inst = &*I++;
|
||||||
|
|
||||||
DEBUG(dbgs() << "ObjCARCOpt: OptimizeIndividualCalls: Visiting: " <<
|
DEBUG(dbgs() << "ObjCARCOpt::OptimizeIndividualCalls: Visiting: " <<
|
||||||
*Inst << "\n");
|
*Inst << "\n");
|
||||||
|
|
||||||
InstructionClass Class = GetBasicInstructionClass(Inst);
|
InstructionClass Class = GetBasicInstructionClass(Inst);
|
||||||
@ -2503,7 +2503,7 @@ void ObjCARCOpt::OptimizeIndividualCalls(Function &F) {
|
|||||||
}
|
}
|
||||||
} while (!Worklist.empty());
|
} while (!Worklist.empty());
|
||||||
|
|
||||||
DEBUG(dbgs() << "ObjCARCOpt: Finished Individual Call Queue.\n\n");
|
DEBUG(dbgs() << "ObjCARCOpt::OptimizeIndividualCalls: Finished Queue.\n\n");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3409,7 +3409,7 @@ void ObjCARCOpt::OptimizeWeakCalls(Function &F) {
|
|||||||
for (inst_iterator I = inst_begin(&F), E = inst_end(&F); I != E; ) {
|
for (inst_iterator I = inst_begin(&F), E = inst_end(&F); I != E; ) {
|
||||||
Instruction *Inst = &*I++;
|
Instruction *Inst = &*I++;
|
||||||
|
|
||||||
DEBUG(dbgs() << "ObjCARCOpt: OptimizeWeakCalls: Visiting: " << *Inst <<
|
DEBUG(dbgs() << "ObjCARCOpt::OptimizeWeakCalls: Visiting: " << *Inst <<
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
InstructionClass Class = GetBasicInstructionClass(Inst);
|
InstructionClass Class = GetBasicInstructionClass(Inst);
|
||||||
@ -3558,7 +3558,7 @@ void ObjCARCOpt::OptimizeWeakCalls(Function &F) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(dbgs() << "ObjCARCOpt: Finished visiting weak calls.\n\n");
|
DEBUG(dbgs() << "ObjCARCOpt::OptimizeWeakCalls: Finished List.\n\n");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3609,7 +3609,7 @@ void ObjCARCOpt::OptimizeReturns(Function &F) {
|
|||||||
BasicBlock *BB = FI;
|
BasicBlock *BB = FI;
|
||||||
ReturnInst *Ret = dyn_cast<ReturnInst>(&BB->back());
|
ReturnInst *Ret = dyn_cast<ReturnInst>(&BB->back());
|
||||||
|
|
||||||
DEBUG(dbgs() << "ObjCARCOpt: OptimizeReturns: Visiting: " << *Ret << "\n");
|
DEBUG(dbgs() << "ObjCARCOpt::OptimizeReturns: Visiting: " << *Ret << "\n");
|
||||||
|
|
||||||
if (!Ret) continue;
|
if (!Ret) continue;
|
||||||
|
|
||||||
@ -3695,7 +3695,7 @@ void ObjCARCOpt::OptimizeReturns(Function &F) {
|
|||||||
Visited.clear();
|
Visited.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(dbgs() << "ObjCARCOpt: OptimizeReturns: Finished visiting returns.\n\n");
|
DEBUG(dbgs() << "ObjCARCOpt::OptimizeReturns: Finished List.\n\n");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4151,7 +4151,7 @@ bool ObjCARCContract::runOnFunction(Function &F) {
|
|||||||
|
|
||||||
if (&*BBI == GetObjCArg(Inst)) {
|
if (&*BBI == GetObjCArg(Inst)) {
|
||||||
DEBUG(dbgs() << "ObjCARCContract: Adding inline asm marker for "
|
DEBUG(dbgs() << "ObjCARCContract: Adding inline asm marker for "
|
||||||
"retainAutoreleasedReturnValue optimization.\n");
|
"retainAutoreleasedReturnValue optimization.\n");
|
||||||
Changed = true;
|
Changed = true;
|
||||||
InlineAsm *IA =
|
InlineAsm *IA =
|
||||||
InlineAsm::get(FunctionType::get(Type::getVoidTy(Inst->getContext()),
|
InlineAsm::get(FunctionType::get(Type::getVoidTy(Inst->getContext()),
|
||||||
|
Loading…
Reference in New Issue
Block a user