mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[PM/LoadCombine] Inline getAnalysisUsage(). NFCI.
llvm-svn: 271600
This commit is contained in:
parent
f0dc82710c
commit
ebef220507
@ -65,7 +65,11 @@ public:
|
||||
using llvm::Pass::doInitialization;
|
||||
bool doInitialization(Function &) override;
|
||||
bool runOnBasicBlock(BasicBlock &BB) override;
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override;
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
AU.setPreservesCFG();
|
||||
AU.addRequired<AAResultsWrapperPass>();
|
||||
AU.addPreserved<GlobalsAAWrapperPass>();
|
||||
}
|
||||
|
||||
const char *getPassName() const override { return LDCOMBINE_NAME; }
|
||||
static char ID;
|
||||
@ -262,13 +266,6 @@ bool LoadCombine::runOnBasicBlock(BasicBlock &BB) {
|
||||
return Combined;
|
||||
}
|
||||
|
||||
void LoadCombine::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesCFG();
|
||||
|
||||
AU.addRequired<AAResultsWrapperPass>();
|
||||
AU.addPreserved<GlobalsAAWrapperPass>();
|
||||
}
|
||||
|
||||
char LoadCombine::ID = 0;
|
||||
|
||||
BasicBlockPass *llvm::createLoadCombinePass() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user