OSDN Git Service

[ObjCARC] Refactored out the inner most 2-loops from PerformCodePlacement into the...
authorMichael Gottesman <mgottesman@apple.com>
Tue, 22 Jan 2013 21:49:00 +0000 (21:49 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Tue, 22 Jan 2013 21:49:00 +0000 (21:49 +0000)
commit862d51fc671af273e52593246e7607fe9a6ba80c
tree7ef76deb8cb0528aa960446009de795afae770d4
parent13d08bf4159d8ffb780bb2e29a03763c17543001
[ObjCARC] Refactored out the inner most 2-loops from PerformCodePlacement into the method ConnectTDBUTraversals.

The method PerformCodePlacement was doing too much (i.e. 3x loops, lots of
different checking). This refactoring separates the analysis section of the
method into a separate function while leaving the actual code placement and
analysis preparation in PerformCodePlacement.

*NOTE* Really this part of ObjCARC should be refactored out of the main pass
class into its own seperate class/struct. But, it is not time to make that
change yet though (don't want to make such an invasive change without fixing all
of the bugs first).

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