mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Rename loop preheaders pass to loop simplify
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9061 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d59128ad36
commit
98bf436e2e
@ -232,14 +232,14 @@ void SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum, Pass *P = 0);
|
|||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
//
|
//
|
||||||
// LoopPreheaders pass - Insert Pre-header blocks into the CFG for every
|
// LoopSimplify pass - Insert Pre-header blocks into the CFG for every function
|
||||||
// function in the module. This pass updates dominator information, loop
|
// in the module. This pass updates dominator information, loop information,
|
||||||
// information, and does not add critical edges to the CFG.
|
// and does not add critical edges to the CFG.
|
||||||
//
|
//
|
||||||
// AU.addRequiredID(LoopPreheadersID);
|
// AU.addRequiredID(LoopSimplifyID);
|
||||||
//
|
//
|
||||||
Pass *createLoopPreheaderInsertionPass();
|
Pass *createLoopSimplifyPass();
|
||||||
extern const PassInfo *LoopPreheadersID;
|
extern const PassInfo *LoopSimplifyID;
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
//
|
//
|
||||||
|
@ -199,7 +199,7 @@ namespace {
|
|||||||
|
|
||||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||||
AU.addRequired<LoopInfo>();
|
AU.addRequired<LoopInfo>();
|
||||||
AU.addRequiredID(LoopPreheadersID);
|
AU.addRequiredID(LoopSimplifyID);
|
||||||
AU.setPreservesCFG();
|
AU.setPreservesCFG();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -53,7 +53,7 @@ namespace {
|
|||||||
///
|
///
|
||||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||||
AU.setPreservesCFG();
|
AU.setPreservesCFG();
|
||||||
AU.addRequiredID(LoopPreheadersID);
|
AU.addRequiredID(LoopSimplifyID);
|
||||||
AU.addRequired<LoopInfo>();
|
AU.addRequired<LoopInfo>();
|
||||||
AU.addRequired<DominatorTree>();
|
AU.addRequired<DominatorTree>();
|
||||||
AU.addRequired<DominanceFrontier>(); // For scalar promotion (mem2reg)
|
AU.addRequired<DominanceFrontier>(); // For scalar promotion (mem2reg)
|
||||||
|
@ -27,7 +27,9 @@ namespace {
|
|||||||
AU.addPreserved<ImmediateDominators>();
|
AU.addPreserved<ImmediateDominators>();
|
||||||
AU.addPreserved<DominatorTree>();
|
AU.addPreserved<DominatorTree>();
|
||||||
AU.addPreserved<DominanceFrontier>();
|
AU.addPreserved<DominanceFrontier>();
|
||||||
AU.addPreservedID(LoopPreheadersID); // No preheaders deleted.
|
|
||||||
|
// No loop canonicalization guarantees are broken by this pass.
|
||||||
|
AU.addPreservedID(LoopSimplifyID);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -66,8 +66,8 @@ namespace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Publically exposed interface to pass...
|
// Publically exposed interface to pass...
|
||||||
const PassInfo *LoopPreheadersID = X.getPassInfo();
|
const PassInfo *LoopSimplifyID = X.getPassInfo();
|
||||||
Pass *createLoopPreheaderInsertionPass() { return new LoopSimplify(); }
|
Pass *createLoopSimplifyPass() { return new LoopSimplify(); }
|
||||||
|
|
||||||
|
|
||||||
/// runOnFunction - Run down all loops in the CFG (recursively, but we could do
|
/// runOnFunction - Run down all loops in the CFG (recursively, but we could do
|
||||||
|
Loading…
Reference in New Issue
Block a user