projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38bc25a
)
[ObjCARC Debug Message] - Added debug message when we erase ARC calls with null since...
author
Michael Gottesman
<mgottesman@apple.com>
Mon, 7 Jan 2013 00:04:52 +0000
(
00:04
+0000)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/ObjCARC.cpp
b/lib/Transforms/Scalar/ObjCARC.cpp
index 1ba5a503848917106899d4a5f4238b2ec13fa769..86b99c9eb159b66e6eed5cd71c850aaed2d38799 100644
(file)
--- 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;
}