[cleanup] Use the type-based preservation method rather than a string
authorChandler Carruth <chandlerc@gmail.com>
Fri, 24 Jan 2014 01:59:49 +0000 (01:59 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 24 Jan 2014 01:59:49 +0000 (01:59 +0000)
literal that bakes a pass name and forces parsing it in the pass
manager.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199963 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LICM.cpp

index bf37b48a8f338115c0591d9682d150cc6026a8c3..f6c78b04f2fd88ba5fa243d3da42cfe66088b0e3 100644 (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>();
     }