1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

[cleanup] Use the type-based preservation method rather than a string

literal that bakes a pass name and forces parsing it in the pass
manager.

llvm-svn: 199963
This commit is contained in:
Chandler Carruth 2014-01-24 01:59:49 +00:00
parent d04868d854
commit d8a6468af8

View File

@ -38,6 +38,7 @@
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/LoopPass.h"
#include "llvm/Analysis/ScalarEvolution.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
@ -86,7 +87,7 @@ namespace {
AU.addRequiredID(LoopSimplifyID);
AU.addRequired<AliasAnalysis>();
AU.addPreserved<AliasAnalysis>();
AU.addPreserved("scalar-evolution");
AU.addPreserved<ScalarEvolution>();
AU.addPreservedID(LoopSimplifyID);
AU.addRequired<TargetLibraryInfo>();
}