[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)
commit5ab64de62bbea1a02ae611a50ec443cbccd72e7b
tree5a398c8e1259197a506602a861fb3e29936471f3
parentc50b75c75c3766a81701b6cfb5b381a9388b5130
[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.

llvm-svn: 229936
llvm/lib/Transforms/ObjCARC/ARCInstKind.cpp
llvm/lib/Transforms/ObjCARC/ARCInstKind.h
llvm/lib/Transforms/ObjCARC/DependencyAnalysis.cpp
llvm/lib/Transforms/ObjCARC/DependencyAnalysis.h