[objc-arc] Add the predicate CanDecrementRefCount.
authorMichael Gottesman <mgottesman@apple.com>
Fri, 20 Feb 2015 00:02:45 +0000 (00:02 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Fri, 20 Feb 2015 00:02:45 +0000 (00:02 +0000)
commit24ee447d0fcd12c1915919e835b26fbdfde74a9f
tree2ab492214a32a047adebe30b20293d9cbd122e3a
parent8a76ab6eaa3b34c89b0864d257678f9b94983acb
[objc-arc] Add the predicate CanDecrementRefCount.

This is different from CanAlterRefCount since CanDecrementRefCount is
attempting to prove specifically whether or not an instruction can
decrement instead of the more general question of whether it can
decrement or increment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229936 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/ObjCARC/ARCInstKind.cpp
lib/Transforms/ObjCARC/ARCInstKind.h
lib/Transforms/ObjCARC/DependencyAnalysis.cpp
lib/Transforms/ObjCARC/DependencyAnalysis.h