[llvm] [llvm][CodeGen] Fix the empty interval issue in Window Scheduler(#128714) (PR #129204)
Hua Tian via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 9 21:19:06 PDT 2025
================
@@ -344,13 +350,16 @@ void ModuloScheduleExpander::generateEpilog(
static void replaceRegUsesAfterLoop(unsigned FromReg, unsigned ToReg,
MachineBasicBlock *MBB,
MachineRegisterInfo &MRI,
- LiveIntervals &LIS) {
+ LiveIntervals &LIS,
+ SmallVector<Register> &EmptyIntervalRegs) {
for (MachineOperand &O :
llvm::make_early_inc_range(MRI.use_operands(FromReg)))
if (O.getParent()->getParent() != MBB)
O.setReg(ToReg);
- if (!LIS.hasInterval(ToReg))
+ if (!LIS.hasInterval(ToReg)) {
LIS.createEmptyInterval(ToReg);
+ EmptyIntervalRegs.push_back(ToReg);
----------------
huaatian wrote:
hi, do you have any further review comments? If not, I'm preparing to merge this patch @arsenm
https://github.com/llvm/llvm-project/pull/129204
More information about the llvm-commits
mailing list