[llvm-branch-commits] [CodeGen] Prevent register coalescer rematerialization based on target (PR #148430)
Tomer Shafir via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jul 15 09:03:18 PDT 2025
================
@@ -1400,6 +1403,12 @@ bool RegisterCoalescer::reMaterializeTrivialDef(const CoalescerPair &CP,
if (!Edit.canRematerializeAt(RM, ValNo, CopyIdx))
return false;
+ if (!TII->shouldReMaterializeTrivialRegDef(CopyMI, DstReg, SrcReg)) {
----------------
tomershafir wrote:
The API and its impl appear in the prev patch of the series: https://github.com/llvm/llvm-project/pull/148429
I designed the API lazily based on use, but will add function and LiveIntervals in the other patch
https://github.com/llvm/llvm-project/pull/148430
More information about the llvm-branch-commits
mailing list