[llvm] [MCP] Enhance MCP copy Instruction removal for special case (PR #70778)

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 2 23:46:15 PDT 2023


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 75b3c3d267bf49b9061db55c4527cfea9e62f77a f2046a6d9f96e3d5b9dcf1648e065ccd9f9a9bad -- llvm/lib/CodeGen/MachineCopyPropagation.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/CodeGen/MachineCopyPropagation.cpp b/llvm/lib/CodeGen/MachineCopyPropagation.cpp
index 738b148df7b5..0685bf1f0803 100644
--- a/llvm/lib/CodeGen/MachineCopyPropagation.cpp
+++ b/llvm/lib/CodeGen/MachineCopyPropagation.cpp
@@ -937,7 +937,6 @@ void MachineCopyPropagation::ForwardCopyPropagateBlock(MachineBasicBlock &MBB) {
     // Any previous copy definition or reading the Defs is no longer available.
     for (MCRegister Reg : Defs)
       Tracker.clobberRegister(Reg, *TRI, *TII, UseCopyInstr);
-
   }
 
   // If MBB doesn't have successors, delete the copies whose defs are not used.

``````````

</details>


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


More information about the llvm-commits mailing list