[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:33:21 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 guess it does in the target instruction implementations, not the base copy handling 

https://github.com/llvm/llvm-project/pull/137687


More information about the llvm-commits mailing list