[ObjCARC Debug Message] - Added debug message when we erase ARC calls with null since...
authorMichael Gottesman <mgottesman@apple.com>
Mon, 7 Jan 2013 00:04:52 +0000 (00:04 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Mon, 7 Jan 2013 00:04:52 +0000 (00:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171677 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/ObjCARC.cpp

index 1ba5a503848917106899d4a5f4238b2ec13fa769..86b99c9eb159b66e6eed5cd71c850aaed2d38799 100644 (file)
@@ -2468,6 +2468,8 @@ void ObjCARCOpt::OptimizeIndividualCalls(Function &F) {
     if (isNullOrUndef(Arg)) {
       Changed = true;
       ++NumNoops;
     if (isNullOrUndef(Arg)) {
       Changed = true;
       ++NumNoops;
+      DEBUG(dbgs() << "ObjCARCOpt::OptimizeIndividualCalls: ARC calls with "
+            " null are no-ops. Erasing: " << *Inst << "\n");
       EraseInstruction(Inst);
       continue;
     }
       EraseInstruction(Inst);
       continue;
     }