[llvm] [MCP] Disable BackwardCopyPropagateBlock for copies with implicit registers. (PR #137687)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 29 05:32:37 PDT 2025
================
@@ -1200,7 +1200,7 @@ void MachineCopyPropagation::BackwardCopyPropagateBlock(
// Ignore non-trivial COPYs.
std::optional<DestSourcePair> CopyOperands =
isCopyInstr(MI, *TII, UseCopyInstr);
- if (CopyOperands) {
+ if (CopyOperands && MI.getNumImplicitOperands() == 0) {
----------------
arsenm wrote:
I thought isCopyInstr was already filtering out these hard cases
https://github.com/llvm/llvm-project/pull/137687
More information about the llvm-commits
mailing list