mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 07:39:31 +00:00
Make DeadMachineInstructionElim preserve CFG
llvm-svn: 273330
This commit is contained in:
parent
7c695fa799
commit
c8fc329323
@ -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
Block a user