Consider ObjC runtime calls objc_storeWeak and others which make a copy of
authorDan Gohman <gohman@apple.com>
Fri, 13 Apr 2012 18:28:58 +0000 (18:28 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 13 Apr 2012 18:28:58 +0000 (18:28 +0000)
commit44234775486a0bd8fb6dae4048666ea5567caa11
tree4f31ce6eae13005770bf4fa10daea1dd0c30a6fe
parent064551e94c9763c7e74121b88f9cbccc0969946a
Consider ObjC runtime calls objc_storeWeak and others which make a copy of
their argument as "escape" points for objc_retainBlock optimization.
This fixes rdar://11229925.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154682 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ObjCARC.cpp
test/Transforms/ObjCARC/escape.ll [new file with mode: 0644]