summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/ObjCARC.cpp
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-01-07 00:04:52 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-01-07 00:04:52 +0000
commit5b970e14e673a9930f276ff9ab191c005505d7f7 (patch)
tree5490a924901a9e93cfe64dcf728e5a694f076e32 /llvm/lib/Transforms/Scalar/ObjCARC.cpp
parent8800a51ac1968fc328db3f3d27ab327a9a2e6426 (diff)
downloadbcm5719-llvm-5b970e14e673a9930f276ff9ab191c005505d7f7.tar.gz
bcm5719-llvm-5b970e14e673a9930f276ff9ab191c005505d7f7.zip
[ObjCARC Debug Message] - Added debug message when we erase ARC calls with null since they are no-ops.
llvm-svn: 171677
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ObjCARC.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/ObjCARC.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/ObjCARC.cpp b/llvm/lib/Transforms/Scalar/ObjCARC.cpp
index 1ba5a503848..86b99c9eb15 100644
--- a/llvm/lib/Transforms/Scalar/ObjCARC.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud