[objc-arc] Move the checking of whether or not we can match onto PtrStates and out...
authorMichael Gottesman <mgottesman@apple.com>
Fri, 6 Mar 2015 00:34:42 +0000 (00:34 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Fri, 6 Mar 2015 00:34:42 +0000 (00:34 +0000)
commitb207e98e2065140db57764b400a5e20aa7314114
treecffb8b00b9c15adc172d6480f00c6a5fb60e4ad9
parentf111a2a5f1249e8ff6cbf2f5d508e934d74df780
[objc-arc] Move the checking of whether or not we can match onto PtrStates and out of the main dataflow.

These refactored computations check whether or not we are at a stage
of the sequence where we can perform a match. This patch moves the
computation out of the main dataflow and into
{BottomUp,TopDown}PtrState.

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