[llvm] [RISCV][MCP] Remove redundant move from tail duplication (PR #89865)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 30 04:28:13 PDT 2024


================
@@ -1053,7 +1053,7 @@ void MachineCopyPropagation::BackwardCopyPropagateBlock(
     // Ignore non-trivial COPYs.
     std::optional<DestSourcePair> CopyOperands =
         isCopyInstr(MI, *TII, UseCopyInstr);
-    if (CopyOperands && MI.getNumOperands() == 2) {
+    if (CopyOperands) {
----------------
arsenm wrote:

I have a patch to fix that stuck on its 6th revert 

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


More information about the llvm-commits mailing list