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:
Erik Eckstein
2017-03-14 10:51:50 -07:00
parent ef4b5e1efe
commit a0079ba5be
31 changed files with 309 additions and 166 deletions

View File

@@ -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;