HomePhabricator

Only passes that preserve MemorySSA must mark it as preserved.

Authored by asbirlea on Jun 11 2019, 11:27 AM.

Description

Only passes that preserve MemorySSA must mark it as preserved.

Summary:
The method getLoopPassPreservedAnalyses should not mark MemorySSA as
preserved, because it's being called in a lot of passes that do not
preserve MemorySSA.
Instead, mark the MemorySSA analysis as preserved by each pass that does
preserve it.
These changes only affect the new pass mananger.

Reviewers: chandlerc

Subscribers: mehdi_amini, jlebar, Prazek, george.burgess.iv, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D62536

llvm-svn: 363091

Details

Committed
asbirleaJun 11 2019, 11:27 AM
Differential Revision
D62536: Only passes that preserve MemorySSA must mark it as preserved.
Parents
rGe20865c387e0: [libc++] Implement deduction guides for <set>
Branches
Unknown
Tags
Unknown