mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-30 15:45:26 +00:00
Tell PassManager that this pass does not invalidate the CFG so that dominator
information and Loop info will not have to be recomputed after this runs. llvm-svn: 4269
This commit is contained in:
parent
b43b03614e
commit
47508d5c0f
@ -1499,6 +1499,7 @@ namespace {
|
||||
// getAnalysisUsage - We use LiveVarInfo...
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.addRequired<FunctionLiveVarInfo>();
|
||||
AU.setPreservesCFG();
|
||||
}
|
||||
|
||||
bool runOnFunction(Function &F);
|
||||
|
@ -63,6 +63,10 @@ namespace {
|
||||
int ruleForNode, short* nts);
|
||||
public:
|
||||
InstructionSelection(TargetMachine &T) : Target(T) {}
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesCFG();
|
||||
}
|
||||
|
||||
bool runOnFunction(Function &F);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user