This is an archive of the discontinued LLVM Phabricator instance.

[LegacyPassManager] PM does not verifies passes preserved by setPreservesAll()
Needs ReviewPublic

Authored by pgp01 on Aug 18 2015, 12:56 AM.

Details

Reviewers
chandlerc
Summary

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.

https://llvm.org/bugs/show_bug.cgi?id=24456

Diff Detail

Repository
rL LLVM

Event Timeline

pgp01 updated this revision to Diff 32382.Aug 18 2015, 12:56 AM
pgp01 retitled this revision from to [LegacyPassManager] PM does not verifies passes preserved by setPreservesAll().
pgp01 updated this object.
pgp01 set the repository for this revision to rL LLVM.
pgp01 changed the visibility from "Public (No Login Required)" to "pgp01 (Pavel Prokofiev)".
pgp01 changed the visibility from "pgp01 (Pavel Prokofiev)" to "Public (No Login Required)".Aug 18 2015, 1:06 AM
pgp01 added a subscriber: llvm-commits.
pgp01 added a comment.Aug 24 2015, 6:18 PM

Kindly reminder

pgp01 added a comment.Sep 8 2015, 6:28 PM

Kindly reminder

pgp01 added a comment.Sep 23 2015, 5:42 PM

Hi Chandler,
Could you please take a look at this issue/patch and decide if it could be fixed?
Thanks,
--Pavel.