[PATCH] D20849: Make MachineCopyPropagation preserve CFG
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue May 31 20:51:11 PDT 2016
arsenm created this revision.
arsenm added reviewers: MatzeB, qcolombet.
arsenm added a subscriber: llvm-commits.
This doesn't touch it as far as I can tell.
http://reviews.llvm.org/D20849
Files:
lib/CodeGen/MachineCopyPropagation.cpp
Index: lib/CodeGen/MachineCopyPropagation.cpp
===================================================================
--- lib/CodeGen/MachineCopyPropagation.cpp
+++ lib/CodeGen/MachineCopyPropagation.cpp
@@ -47,6 +47,11 @@
initializeMachineCopyPropagationPass(*PassRegistry::getPassRegistry());
}
+ void getAnalysisUsage(AnalysisUsage &AU) const override {
+ AU.setPreservesCFG();
+ MachineFunctionPass::getAnalysisUsage(AU);
+ }
+
bool runOnMachineFunction(MachineFunction &MF) override;
MachineFunctionProperties getRequiredProperties() const override {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20849.59170.patch
Type: text/x-patch
Size: 594 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160601/4bc36509/attachment.bin>
More information about the llvm-commits
mailing list