Give option to use isCopyInstr to determine which MI is
authorAdrian Tong <adriantong1024@gmail.com>
Wed, 4 May 2022 23:00:42 +0000 (23:00 +0000)
committerAdrian Tong <adriantong1024@gmail.com>
Thu, 26 May 2022 18:43:16 +0000 (18:43 +0000)
commit7c13ae6490b102a7d14d75c8f502f3e003118f49
tree28573f36671cbe368abf8a049dfa0d4597762b6c
parentea6d0c4b2a1ec9c12aa5513ddf574f3146cf9025
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
llvm/include/llvm/CodeGen/Passes.h
llvm/lib/CodeGen/MachineCopyPropagation.cpp
llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
llvm/test/CodeGen/AArch64/O3-pipeline.ll
llvm/test/CodeGen/AArch64/copyprop.ll [new file with mode: 0644]
llvm/test/CodeGen/AArch64/copyprop.mir