From: Michael Gottesman Date: Mon, 7 Jan 2013 00:04:52 +0000 (+0000) Subject: [ObjCARC Debug Message] - Added debug message when we erase ARC calls with null since... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fbe4d6b1fa256825ded9d9ebf1b6aeca3d1ff270;p=oota-llvm.git [ObjCARC Debug Message] - Added debug message when we erase ARC calls with null since they are no-ops. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171677 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/ObjCARC.cpp b/lib/Transforms/Scalar/ObjCARC.cpp index 1ba5a503848..86b99c9eb15 100644 --- a/lib/Transforms/Scalar/ObjCARC.cpp +++ b/lib/Transforms/Scalar/ObjCARC.cpp @@ -2468,6 +2468,8 @@ void ObjCARCOpt::OptimizeIndividualCalls(Function &F) { if (isNullOrUndef(Arg)) { Changed = true; ++NumNoops; + DEBUG(dbgs() << "ObjCARCOpt::OptimizeIndividualCalls: ARC calls with " + " null are no-ops. Erasing: " << *Inst << "\n"); EraseInstruction(Inst); continue; }