[llvm-branch-commits] [CodeGen] Prevent register coalescer rematerialization based on target (PR #148430)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jul 15 09:10:09 PDT 2025
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
More information about the llvm-branch-commits
mailing list