[PATCH] D125335: Give option to use isCopyInstr to determine which MI is treated as Copy instruction in MCP

Kai Luo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 17 09:07:53 PDT 2022


lkail added a comment.

Could you please describe briefly what copy-like instructions MCP is missing in the summary?



================
Comment at: llvm/lib/CodeGen/MachineCopyPropagation.cpp:89
+
+static cl::opt<bool> MCPUseCopyInstr("mcp-use-is-copy-instr", cl::init(false),
+                                     cl::Hidden);
----------------
Why do we need this option? Can we extend MCP to check `TII.isCopyInstr` by default?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125335/new/

https://reviews.llvm.org/D125335



More information about the llvm-commits mailing list