mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-10 05:41:40 +00:00
LICM preserves scalar evolution and dom frontier.
llvm-svn: 40602
This commit is contained in:
parent
ed1fa44d75
commit
2e8466c22a
@ -42,6 +42,7 @@
|
|||||||
#include "llvm/Analysis/AliasAnalysis.h"
|
#include "llvm/Analysis/AliasAnalysis.h"
|
||||||
#include "llvm/Analysis/AliasSetTracker.h"
|
#include "llvm/Analysis/AliasSetTracker.h"
|
||||||
#include "llvm/Analysis/Dominators.h"
|
#include "llvm/Analysis/Dominators.h"
|
||||||
|
#include "llvm/Analysis/ScalarEvolution.h"
|
||||||
#include "llvm/Transforms/Utils/PromoteMemToReg.h"
|
#include "llvm/Transforms/Utils/PromoteMemToReg.h"
|
||||||
#include "llvm/Support/CFG.h"
|
#include "llvm/Support/CFG.h"
|
||||||
#include "llvm/Support/Compiler.h"
|
#include "llvm/Support/Compiler.h"
|
||||||
@ -78,6 +79,8 @@ namespace {
|
|||||||
AU.addRequired<DominatorTree>();
|
AU.addRequired<DominatorTree>();
|
||||||
AU.addRequired<DominanceFrontier>(); // For scalar promotion (mem2reg)
|
AU.addRequired<DominanceFrontier>(); // For scalar promotion (mem2reg)
|
||||||
AU.addRequired<AliasAnalysis>();
|
AU.addRequired<AliasAnalysis>();
|
||||||
|
AU.addPreserved<ScalarEvolution>();
|
||||||
|
AU.addPreserved<DominanceFrontier>();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool doFinalization() {
|
bool doFinalization() {
|
||||||
|
Loading…
Reference in New Issue
Block a user