[llvm] [RegisterCoalescer]: Try inflated RC for coalescing reg->subreg (PR #134438)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 4 22:55:35 PDT 2025
================
@@ -515,6 +517,12 @@ bool CoalescerPair::setRegisters(const MachineInstr *MI) {
// SrcReg will be merged with a sub-register of DstReg.
SrcIdx = DstSub;
NewRC = TRI.getMatchingSuperRegClass(DstRC, SrcRC, DstSub);
+ if (!NewRC) {
+ auto SuperSrcRC = MRI.getLargestConstrainedSuperClass(Src);
----------------
arsenm wrote:
No auto
https://github.com/llvm/llvm-project/pull/134438
More information about the llvm-commits
mailing list