Move the generic specializer to using the new call graph.

Resolves <rdar://problem/18186065>.

Swift SVN r22596
This commit is contained in:
Mark Lacey
2014-10-08 06:25:57 +00:00
parent 7284f31d4e
commit 3007f6597b

View File

@@ -374,8 +374,9 @@ public:
// Collect a call-graph bottom-up list of functions and specialize the
// functions in reverse order.
auto &CG = CGA->getCallGraph();
bool Changed = GenericSpecializer(getModule()).
specialize(CGA->bottomUpCallGraphOrder());
specialize(CG.getBottomUpFunctionOrder());
if (Changed) {
// Schedule another iteration of the transformation pipe.