From 48de2a917dca79cf70d087b08949813a1859c2d8 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 2 Jun 2016 00:04:26 +0000 Subject: [PATCH] Make MachineCopyPropagation preserve CFG This doesn't touch it as far as I can tell. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271445 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachineCopyPropagation.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/CodeGen/MachineCopyPropagation.cpp b/lib/CodeGen/MachineCopyPropagation.cpp index 7f2e7784026..8fdf39d54bd 100644 --- a/lib/CodeGen/MachineCopyPropagation.cpp +++ b/lib/CodeGen/MachineCopyPropagation.cpp @@ -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 {