-sil-print-all (et al.) should print specialized functions when they are created.

This commit is contained in:
Andrew Trick
2018-02-08 11:27:46 -08:00
parent af67204b51
commit 3a15cee084
3 changed files with 25 additions and 0 deletions

View File

@@ -114,6 +114,7 @@ namespace swift {
/// The number should be small anyway, but bugs in optimizations could cause
/// an infinite loop in the passmanager.
void notifyAddFunction(SILFunction *F, SILFunction *DerivedFrom) {
PM->notifyOfNewFunction(F, this);
PM->addFunctionToWorklist(F, DerivedFrom);
PM->notifyAnalysisOfFunction(F);
}
@@ -171,6 +172,7 @@ namespace swift {
/// Inform the pass manager of an added function.
void notifyAddFunction(SILFunction *F) {
PM->notifyOfNewFunction(F, this);
PM->notifyAnalysisOfFunction(F);
}
};