diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-06-02 00:04:26 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-06-02 00:04:26 +0000 |
commit | 8f4d43a41f94bae430064b14eb53e6f645718a47 (patch) | |
tree | a5ff2010612469e715b2d811bb0edabd3715f26c /llvm/lib/CodeGen/MachineCopyPropagation.cpp | |
parent | d3e4c646ea9dfc5ed20a347f5bf59760bdc781b8 (diff) | |
download | llvm-8f4d43a41f94bae430064b14eb53e6f645718a47.zip llvm-8f4d43a41f94bae430064b14eb53e6f645718a47.tar.gz llvm-8f4d43a41f94bae430064b14eb53e6f645718a47.tar.bz2 |
Make MachineCopyPropagation preserve CFG
This doesn't touch it as far as I can tell.
llvm-svn: 271445
Diffstat (limited to 'llvm/lib/CodeGen/MachineCopyPropagation.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineCopyPropagation.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineCopyPropagation.cpp b/llvm/lib/CodeGen/MachineCopyPropagation.cpp index 7f2e778..8fdf39d5 100644 --- a/llvm/lib/CodeGen/MachineCopyPropagation.cpp +++ b/llvm/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 { |