Make DeadMachineInstructionElim preserve CFG

llvm-svn: 273330
This commit is contained in:
Matt Arsenault 2016-06-21 23:01:17 +00:00
parent a783bac50b
commit 6b3e2120b9
1 changed files with 5 additions and 0 deletions

View File

@ -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;
};