1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[PM/LoadCombine] Inline getAnalysisUsage(). NFCI.

llvm-svn: 271600
This commit is contained in:
Davide Italiano 2016-06-02 22:04:43 +00:00
parent f0dc82710c
commit ebef220507

View File

@ -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() {