[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)
commitfa709768b91df14bb7b5606700d92c3c10aba625
tree8a643dcfa0049416b45b2381c6724b7c77e5714b
parent42f562a1694d24b41f36bbb4d4a086a2a470c625
[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.

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