mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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:
@@ -115,7 +115,7 @@ bool Devirtualizer::devirtualizeAppliesInFunction(SILFunction &F,
|
||||
// be beneficial to rerun some earlier passes on the current
|
||||
// function now that we've made these direct references visible.
|
||||
if (CalleeFn->isDefinition() && CalleeFn->shouldOptimize())
|
||||
notifyPassManagerOfFunction(CalleeFn, nullptr);
|
||||
notifyAddFunction(CalleeFn, nullptr);
|
||||
}
|
||||
|
||||
return Changed;
|
||||
|
||||
Reference in New Issue
Block a user