[PATCH] D20850: Make DeadMachineInstructionElim preserve CFG
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue May 31 20:57:16 PDT 2016
arsenm created this revision.
arsenm added a subscriber: llvm-commits.
http://reviews.llvm.org/D20850
Files:
lib/CodeGen/DeadMachineInstructionElim.cpp
Index: lib/CodeGen/DeadMachineInstructionElim.cpp
===================================================================
--- lib/CodeGen/DeadMachineInstructionElim.cpp
+++ lib/CodeGen/DeadMachineInstructionElim.cpp
@@ -42,6 +42,11 @@
initializeDeadMachineInstructionElimPass(*PassRegistry::getPassRegistry());
}
+ void getAnalysisUsage(AnalysisUsage &AU) const override {
+ AU.setPreservesCFG();
+ MachineFunctionPass::getAnalysisUsage(AU);
+ }
+
private:
bool isDead(const MachineInstr *MI) const;
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20850.59172.patch
Type: text/x-patch
Size: 539 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160601/dde0843c/attachment.bin>
More information about the llvm-commits
mailing list