[llvm] [MacroFusion][RISCV] Allocate same register for second instruction of fusible pair (PR #77461)

Mikhail Gudim via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 9 20:40:13 PST 2024


================
@@ -823,6 +823,8 @@ bool RISCVRegisterInfo::getRegAllocationHints(
         tryAddHint(MO, MI.getOperand(0), NeedGPRC);
       }
     }
+    if (MI.isFusible() && OpIdx == 1)
----------------
mgudim wrote:

don't we need to check that the "first" instuction is part of a fusible pair?

https://github.com/llvm/llvm-project/pull/77461


More information about the llvm-commits mailing list