Make DeadMachineInstructionElim preserve CFG

llvm-svn: 273330
This commit is contained in:
Matt Arsenault 2016-06-21 23:01:17 +00:00
parent 7c695fa799
commit c8fc329323

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