Skip to content

Commit 7c13ae6

Browse files
author
Adrian Tong
committed
Give option to use isCopyInstr to determine which MI is
treated as Copy instruction in MCP. This is then used in AArch64 to remove copy instructions after taildup ran in machine block placement Differential Revision: https://reviews.llvm.org/D125335
1 parent ea6d0c4 commit 7c13ae6

File tree

6 files changed

+240
-82
lines changed

6 files changed

+240
-82
lines changed

llvm/include/llvm/CodeGen/Passes.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ namespace llvm {
331331
/// machine instructions.
332332
extern char &MachineCopyPropagationID;
333333

334+
MachineFunctionPass *createMachineCopyPropagationPass(bool UseCopyInstr);
335+
334336
/// PeepholeOptimizer - This pass performs peephole optimizations -
335337
/// like extension and comparison eliminations.
336338
extern char &PeepholeOptimizerID;

0 commit comments

Comments
 (0)