SIL Analysis: Rename InvalidationKind::FunctionData to InvalidationKind::Effects

This invalidation kind is used when a compute-effects pass changes function effects.
Also, let optimization passes which don't change effects only invalidate the `FunctionBody` and not `Everything`.
This commit is contained in:
Erik Eckstein
2022-10-07 19:22:05 +02:00
parent 1edcd89f51
commit ecbcacdecf
20 changed files with 32 additions and 33 deletions

View File

@@ -893,7 +893,7 @@ void EagerSpecializerTransform::run() {
// Invalidate everything since we delete calls as well as add new
// calls and branches.
if (Changed) {
invalidateAnalysis(SILAnalysis::InvalidationKind::Everything);
invalidateAnalysis(SILAnalysis::InvalidationKind::FunctionBody);
}
// As specializations are created, the non-exported attributes should be