mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-30 08:25:08 +00:00
LSR itself doesn't need DominatorTree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91282 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
67b94fb73d
commit
c398365349
@ -26,7 +26,6 @@
|
|||||||
#include "llvm/IntrinsicInst.h"
|
#include "llvm/IntrinsicInst.h"
|
||||||
#include "llvm/Type.h"
|
#include "llvm/Type.h"
|
||||||
#include "llvm/DerivedTypes.h"
|
#include "llvm/DerivedTypes.h"
|
||||||
#include "llvm/Analysis/Dominators.h"
|
|
||||||
#include "llvm/Analysis/IVUsers.h"
|
#include "llvm/Analysis/IVUsers.h"
|
||||||
#include "llvm/Analysis/LoopInfo.h"
|
#include "llvm/Analysis/LoopInfo.h"
|
||||||
#include "llvm/Analysis/LoopPass.h"
|
#include "llvm/Analysis/LoopPass.h"
|
||||||
@ -86,7 +85,6 @@ namespace {
|
|||||||
class LoopStrengthReduce : public LoopPass {
|
class LoopStrengthReduce : public LoopPass {
|
||||||
IVUsers *IU;
|
IVUsers *IU;
|
||||||
LoopInfo *LI;
|
LoopInfo *LI;
|
||||||
DominatorTree *DT;
|
|
||||||
ScalarEvolution *SE;
|
ScalarEvolution *SE;
|
||||||
bool Changed;
|
bool Changed;
|
||||||
|
|
||||||
@ -118,12 +116,11 @@ namespace {
|
|||||||
// many analyses if they are around.
|
// many analyses if they are around.
|
||||||
AU.addPreservedID(LoopSimplifyID);
|
AU.addPreservedID(LoopSimplifyID);
|
||||||
AU.addPreserved<LoopInfo>();
|
AU.addPreserved<LoopInfo>();
|
||||||
AU.addPreserved<DominanceFrontier>();
|
AU.addPreserved("domfrontier");
|
||||||
AU.addPreserved<DominatorTree>();
|
AU.addPreserved("domtree");
|
||||||
|
|
||||||
AU.addRequiredID(LoopSimplifyID);
|
AU.addRequiredID(LoopSimplifyID);
|
||||||
AU.addRequired<LoopInfo>();
|
AU.addRequired<LoopInfo>();
|
||||||
AU.addRequired<DominatorTree>();
|
|
||||||
AU.addRequired<ScalarEvolution>();
|
AU.addRequired<ScalarEvolution>();
|
||||||
AU.addPreserved<ScalarEvolution>();
|
AU.addPreserved<ScalarEvolution>();
|
||||||
AU.addRequired<IVUsers>();
|
AU.addRequired<IVUsers>();
|
||||||
@ -2724,7 +2721,6 @@ bool LoopStrengthReduce::OptimizeLoopCountIV(Loop *L) {
|
|||||||
bool LoopStrengthReduce::runOnLoop(Loop *L, LPPassManager &LPM) {
|
bool LoopStrengthReduce::runOnLoop(Loop *L, LPPassManager &LPM) {
|
||||||
IU = &getAnalysis<IVUsers>();
|
IU = &getAnalysis<IVUsers>();
|
||||||
LI = &getAnalysis<LoopInfo>();
|
LI = &getAnalysis<LoopInfo>();
|
||||||
DT = &getAnalysis<DominatorTree>();
|
|
||||||
SE = &getAnalysis<ScalarEvolution>();
|
SE = &getAnalysis<ScalarEvolution>();
|
||||||
Changed = false;
|
Changed = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user