Use the new Use-aware dominates method to apply the objc runtime
authorDan Gohman <gohman@apple.com>
Fri, 13 Apr 2012 01:08:28 +0000 (01:08 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 13 Apr 2012 01:08:28 +0000 (01:08 +0000)
commit6c189ecbe6d11583dc54289a2e8d8f35add01c82
treeb3a1c55fccb4ea87d784a8be2b10e9c7b81d143b
parentaab3c0cb077f741af3447cc030c28bedd23b491c
Use the new Use-aware dominates method to apply the objc runtime
library return value optimization for phi uses. Even when the
phi itself is not dominated, the specific use may be dominated.

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