[llvm] r271445 - Make MachineCopyPropagation preserve CFG
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 1 17:04:26 PDT 2016
Author: arsenm
Date: Wed Jun 1 19:04:26 2016
New Revision: 271445
URL: http://llvm.org/viewvc/llvm-project?rev=271445&view=rev
Log:
Make MachineCopyPropagation preserve CFG
This doesn't touch it as far as I can tell.
Modified:
llvm/trunk/lib/CodeGen/MachineCopyPropagation.cpp
Modified: llvm/trunk/lib/CodeGen/MachineCopyPropagation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineCopyPropagation.cpp?rev=271445&r1=271444&r2=271445&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineCopyPropagation.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineCopyPropagation.cpp Wed Jun 1 19:04:26 2016
@@ -47,6 +47,11 @@ namespace {
initializeMachineCopyPropagationPass(*PassRegistry::getPassRegistry());
}
+ void getAnalysisUsage(AnalysisUsage &AU) const override {
+ AU.setPreservesCFG();
+ MachineFunctionPass::getAnalysisUsage(AU);
+ }
+
bool runOnMachineFunction(MachineFunction &MF) override;
MachineFunctionProperties getRequiredProperties() const override {
More information about the llvm-commits
mailing list