Lines Matching refs:Calls
138 // calls followed by objc_autoreleasePoolPop calls (perhaps in ObjC++ code
139 // after inlining) can be turned into plain release calls.
149 // TODO: Recognize that a bunch of other objc runtime calls have
153 // TODO: Sink autorelease calls as far as possible. Unfortunately we
154 // usually can't sink them past other calls, which would be the main
161 STATISTIC(NumNoops, "Number of no-op objc calls eliminated");
162 STATISTIC(NumPartialNoops, "Number of partially no-op objc calls eliminated");
167 STATISTIC(NumPeeps, "Number of calls peephole-optimized");
684 // Visit all objc_* calls in F.
695 // Delete no-op casts. These function calls have special semantics, but
697 // so by the time they reach the optimizer, they are just no-op calls
823 // ARC calls with null are no-ops. Delete them.
827 DEBUG(dbgs() << "ARC calls with null are no-ops. Erasing: " << *Inst
1477 /// Move the calls in RetainsToMove and ReleasesToMove.
1489 // Insert the new retain and release calls.
1517 // Delete the original retain and release calls.
1518 for (Instruction *OrigRetain : RetainsToMove.Calls) {
1523 for (Instruction *OrigRelease : ReleasesToMove.Calls) {
1548 // bottom-up-collected ReleasesToMove to form sets of related calls.
1566 for (Instruction *NewRetainRelease : NewRetainRRI.Calls) {
1577 if (!NewRetainReleaseRRI.Calls.count(NewRetain))
1580 if (ReleasesToMove.Calls.insert(NewRetainRelease).second) {
1641 for (Instruction *NewReleaseRetain : NewReleaseRRI.Calls) {
1652 if (!NewReleaseRetainRRI.Calls.count(NewRelease))
1655 if (RetainsToMove.Calls.insert(NewReleaseRetain).second) {
1702 // balance of retain and release calls through the program.
1718 // release calls through the program. If not, conservatively don't touch
1731 // We can move calls!
1778 // bottom-up-collected ReleasesToMove to form sets of related calls.
1824 // Delete objc_loadWeak calls with no users.
1909 // (and arbitrary calls, which could call the weak entry points).
1969 // map stays valid when we get around to rewriting code and calls get
2171 // calls finalizers which can have arbitrary side effects.