From 42e23de4dbbf5bca6883d07dc0cc3f4ac40ca4f0 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Fri, 24 Jan 2014 01:59:49 +0000 Subject: [PATCH] [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199963 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/LICM.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp index bf37b48a8f3..f6c78b04f2f 100644 --- a/lib/Transforms/Scalar/LICM.cpp +++ b/lib/Transforms/Scalar/LICM.cpp @@ -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(); AU.addPreserved(); - AU.addPreserved("scalar-evolution"); + AU.addPreserved(); AU.addPreservedID(LoopSimplifyID); AU.addRequired(); }