mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Change the specialization API to allow specialization of individual calls
and specialization using a call tree. Swift SVN r25573
This commit is contained in:
@@ -41,10 +41,11 @@ public:
|
||||
// functions in reverse order.
|
||||
auto &CG = CGA->getCallGraph();
|
||||
auto GS = GenericSpecializer(getModule());
|
||||
GS.addApplyInst(CG.getBottomUpFunctionOrder());
|
||||
|
||||
// Try to specialize generic calls.
|
||||
if (GS.specialize()) {
|
||||
bool Changed = GS.specialize(CG.getBottomUpFunctionOrder());
|
||||
|
||||
if (Changed) {
|
||||
// Schedule another iteration of the transformation pipe.
|
||||
PM->scheduleAnotherIteration();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user