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:
parent
5c76a62ee6
commit
27dfca0765
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user