forked from OSchip/llvm-project
Make DeadMachineInstructionElim preserve CFG
llvm-svn: 273330
This commit is contained in:
parent
a783bac50b
commit
6b3e2120b9
|
@ -42,6 +42,11 @@ namespace {
|
|||
initializeDeadMachineInstructionElimPass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
AU.setPreservesCFG();
|
||||
MachineFunctionPass::getAnalysisUsage(AU);
|
||||
}
|
||||
|
||||
private:
|
||||
bool isDead(const MachineInstr *MI) const;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue