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 HEAD~1 HEAD --extensions cpp -- 
llvm/lib/CodeGen/RegisterCoalescer.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp 
b/llvm/lib/CodeGen/RegisterCoalescer.cpp
index 758fbd81e..e158a8ecb 100644
--- a/llvm/lib/CodeGen/RegisterCoalescer.cpp
+++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp
@@ -1403,7 +1403,8 @@ bool RegisterCoalescer::reMaterializeTrivialDef(const 
CoalescerPair &CP,
   if (!Edit.canRematerializeAt(RM, ValNo, CopyIdx))
     return false;
 
-  if (!TII->shouldReMaterializeTrivialRegDef(MF, *CopyMI, DstReg, SrcReg, 
LIS)) {
+  if (!TII->shouldReMaterializeTrivialRegDef(MF, *CopyMI, DstReg, SrcReg,
+                                             LIS)) {
     LLVM_DEBUG(dbgs() << "Remat prevented: " << CopyIdx << "\t" << *CopyMI);
     ++NumReMatsPrevented;
     return false;

``````````

</details>


https://github.com/llvm/llvm-project/pull/148430
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to