mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
SSI needs to require DT and DF transitively, since it uses them outside of its runOnFunction.
Similarly, it can be marked setPreservesAll, since it does no work in its runOnFunction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83282 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
144034eace
commit
7aa3c781b4
@ -37,9 +37,9 @@ STATISTIC(NumSigmaInserted, "Number of sigma functions inserted");
|
||||
STATISTIC(NumPhiInserted, "Number of phi functions inserted");
|
||||
|
||||
void SSI::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.addRequired<DominanceFrontier>();
|
||||
AU.addRequired<DominatorTree>();
|
||||
AU.setPreservesCFG();
|
||||
AU.addRequiredTransitive<DominanceFrontier>();
|
||||
AU.addRequiredTransitive<DominatorTree>();
|
||||
AU.setPreservesAll();
|
||||
}
|
||||
|
||||
bool SSI::runOnFunction(Function &F) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user