[llvm-commits] [llvm] r171677 - /llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp
Michael Gottesman
mgottesman at apple.com
Sun Jan 6 16:04:52 PST 2013
Author: mgottesman
Date: Sun Jan 6 18:04:52 2013
New Revision: 171677
URL: http://llvm.org/viewvc/llvm-project?rev=171677&view=rev
Log:
[ObjCARC Debug Message] - Added debug message when we erase ARC calls with null since they are no-ops.
Modified:
llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp?rev=171677&r1=171676&r2=171677&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/ObjCARC.cpp Sun Jan 6 18:04:52 2013
@@ -2468,6 +2468,8 @@
if (isNullOrUndef(Arg)) {
Changed = true;
++NumNoops;
+ DEBUG(dbgs() << "ObjCARCOpt::OptimizeIndividualCalls: ARC calls with "
+ " null are no-ops. Erasing: " << *Inst << "\n");
EraseInstruction(Inst);
continue;
}
More information about the llvm-commits
mailing list