[objc-arc] Move the before optimization statistics gathering phase out of OptimizeInd...
authorMichael Gottesman <mgottesman@apple.com>
Mon, 13 May 2013 18:29:07 +0000 (18:29 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Mon, 13 May 2013 18:29:07 +0000 (18:29 +0000)
commit9fc50b82a4e3cac2acf83dc217d097cb18706b95
tree61cd2530cc32beba79dd09dd31c7751f81eadc6a
parent9edae02db8884987be6d4e47fd726c8572a12410
[objc-arc] Move the before optimization statistics gathering phase out of OptimizeIndividualCalls.

This makes the statistics gathering completely independent of the actual
optimization occuring, preventing any sort of bleeding over from occuring.

Additionally, it simplifies a switch statement in the non-statistic gathering case.

llvm-svn: 181719
llvm/lib/Transforms/ObjCARC/ObjCARCOpts.cpp