mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[PM] Preserve GlobalsAA for SROA.
Differential Revision: http://reviews.llvm.org/D21040 llvm-svn: 272009
This commit is contained in:
parent
bab28a1f85
commit
e1c6a997f8
@ -4232,9 +4232,14 @@ PreservedAnalyses SROA::runImpl(Function &F, DominatorTree &RunDT,
|
||||
PostPromotionWorklist.clear();
|
||||
} while (!Worklist.empty());
|
||||
|
||||
if (!Changed)
|
||||
return PreservedAnalyses::all();
|
||||
|
||||
// FIXME: Even when promoting allocas we should preserve some abstract set of
|
||||
// CFG-specific analyses.
|
||||
return Changed ? PreservedAnalyses::none() : PreservedAnalyses::all();
|
||||
PreservedAnalyses PA;
|
||||
PA.preserve<GlobalsAA>();
|
||||
return PA;
|
||||
}
|
||||
|
||||
PreservedAnalyses SROA::run(Function &F, AnalysisManager<Function> &AM) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user