mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Move the generic specializer to using the new call graph.
Resolves <rdar://problem/18186065>. Swift SVN r22596
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user