From abfa3e56521c3ce3918285d2cefc1bcdf9dfb310 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Fri, 24 Jan 2014 01:59:49 +0000 Subject: [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 --- llvm/lib/Transforms/Scalar/LICM.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib') diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp index bf37b48a8f3..f6c78b04f2f 100644 --- a/llvm/lib/Transforms/Scalar/LICM.cpp +++ b/llvm/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(); } -- cgit v1.2.3