[llvm] r273330 - Make DeadMachineInstructionElim preserve CFG
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 21 16:01:18 PDT 2016
Author: arsenm
Date: Tue Jun 21 18:01:17 2016
New Revision: 273330
URL: http://llvm.org/viewvc/llvm-project?rev=273330&view=rev
Log:
Make DeadMachineInstructionElim preserve CFG
Modified:
llvm/trunk/lib/CodeGen/DeadMachineInstructionElim.cpp
Modified: llvm/trunk/lib/CodeGen/DeadMachineInstructionElim.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/DeadMachineInstructionElim.cpp?rev=273330&r1=273329&r2=273330&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/DeadMachineInstructionElim.cpp (original)
+++ llvm/trunk/lib/CodeGen/DeadMachineInstructionElim.cpp Tue Jun 21 18:01:17 2016
@@ -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;
};
More information about the llvm-commits
mailing list