The LegacyPassManager, PMDataManager::verifyPreservedAnalysis() iterates over PreservedSet and calls verifyAnalysis() for each analysis.
In other hand, some passes use setPreservesAll() which setups a flag, but adds nothing to the PreservedSet.
As a result only passes, added by addPreserved<T>(), will be verified.