[objc-arc] KnownSafe does not imply that it is safe to perform code motion across...
authorMichael Gottesman <mgottesman@apple.com>
Fri, 24 May 2013 20:44:05 +0000 (20:44 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Fri, 24 May 2013 20:44:05 +0000 (20:44 +0000)
commit7932798384725834bd77f934e3408e5cca29c131
tree10fea11bdb6a9c1ec35d1ab099d29168cd398423
parent35e88e57eacdb8edff3b5890e8271a805f250606
[objc-arc] KnownSafe does not imply that it is safe to perform code motion across CFG edges since even if it is safe to remove RR pairs, we may still be able to move a retain/release into a loop.

rdar://13949644

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182670 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
test/Transforms/ObjCARC/allocas.ll