[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)
commit6080596328e6d37e170115214d33523f2b7c4846
treee7af47d0aa43273b5e1450d1d0f2ed2c1dabe1bf
parent4eae396ae9eb37ad4e7f5648069110d6a08f5f52
[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.

llvm-svn: 231439
llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp
llvm/lib/Transforms/ObjCARC/PtrState.cpp
llvm/lib/Transforms/ObjCARC/PtrState.h