mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL optimizations: Implement the new API for analysis invalidation.
There are now separate functions for function addition and deletion instead of InvalidationKind::Function. Also, there is a new function for witness/vtable invalidations. rdar://problem/29311657
This commit is contained in:
@@ -112,7 +112,7 @@ bool GenericSpecializer::specializeAppliesInFunction(SILFunction &F) {
|
||||
// (as opposed to returning a previous specialization), we need to notify
|
||||
// the pass manager so that the new functions get optimized.
|
||||
for (SILFunction *NewF : reverse(NewFunctions)) {
|
||||
notifyPassManagerOfFunction(NewF, Callee);
|
||||
notifyAddFunction(NewF, Callee);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user