aboutsummaryrefslogtreecommitdiffstats
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
commitfbe4d6b1fa256825ded9d9ebf1b6aeca3d1ff270 (patch)
tree9a8ce8ddcff4a9eaf1912809fb7e519f34d8155f
parent38bc25a52e7f0019c7339371f2eca080269dd6af (diff)
downloadexternal_llvm-fbe4d6b1fa256825ded9d9ebf1b6aeca3d1ff270.zip
external_llvm-fbe4d6b1fa256825ded9d9ebf1b6aeca3d1ff270.tar.gz
external_llvm-fbe4d6b1fa256825ded9d9ebf1b6aeca3d1ff270.tar.bz2
[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
-rw-r--r--lib/Transforms/Scalar/ObjCARC.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/ObjCARC.cpp b/lib/Transforms/Scalar/ObjCARC.cpp
index 1ba5a50..86b99c9 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;
}