1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00

Added DEBUG message for ObjCARC when we zap a push/pop pair in ObjCARCAPElim::OptimizeBB.

llvm-svn: 171464
This commit is contained in:
Michael Gottesman 2013-01-03 08:09:17 +00:00
parent 5c76a62ee6
commit 27dfca0765

View File

@ -995,6 +995,9 @@ bool ObjCARCAPElim::OptimizeBB(BasicBlock *BB) {
// zap the pair.
if (Push && cast<CallInst>(Inst)->getArgOperand(0) == Push) {
Changed = true;
DEBUG(dbgs() << "ObjCARCAPElim: OptimizeBB: Zapping push pop autorelease pair:\n"
<< " Pop: " << *Inst << "\n"
<< " Push: " << *Push << "\n");
Inst->eraseFromParent();
Push->eraseFromParent();
}