From 9e3aa7ab9ceff8f782587a4539f4afe288715e5a 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. llvm-svn: 271445 --- 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 {