================ @@ -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 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits