f1ebd657fe
When testing for an empty type, TFA can take allocated classes into account even if type is not specialized. This check is quick and more precise. As a result, TFA can eliminate certain calls when their argument types don't have allocated subtypes. This is important for dart2wasm as it doesn't handle interface calls without any dispatch targets. TEST=co19/Language/Generics/scope_t05 Fixes https://github.com/dart-lang/sdk/issues/52873 Change-Id: Iad39e478df7882127f39164893455b68fdbf44ac Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/356306 Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>