From 2e8466c22ae01a0d957607868e8b47abcef26346 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 30 Jul 2007 20:19:59 +0000 Subject: [PATCH] LICM preserves scalar evolution and dom frontier. llvm-svn: 40602 --- lib/Transforms/Scalar/LICM.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp index 77ac5634bd9..a4aa12ababd 100644 --- a/lib/Transforms/Scalar/LICM.cpp +++ b/lib/Transforms/Scalar/LICM.cpp @@ -42,6 +42,7 @@ #include "llvm/Analysis/AliasAnalysis.h" #include "llvm/Analysis/AliasSetTracker.h" #include "llvm/Analysis/Dominators.h" +#include "llvm/Analysis/ScalarEvolution.h" #include "llvm/Transforms/Utils/PromoteMemToReg.h" #include "llvm/Support/CFG.h" #include "llvm/Support/Compiler.h" @@ -78,6 +79,8 @@ namespace { AU.addRequired(); AU.addRequired(); // For scalar promotion (mem2reg) AU.addRequired(); + AU.addPreserved(); + AU.addPreserved(); } bool doFinalization() {