Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions llvm/lib/CodeGen/ModuloSchedule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -951,20 +951,8 @@ void ModuloScheduleExpander::addBranches(MachineBasicBlock &PreheaderBB,
/// Some registers are generated during the kernel expansion. We calculate the
/// live intervals of these registers after the expansion.
void ModuloScheduleExpander::calculateIntervals() {
// The interval can be computed if all the register's non-debug users have
// slot indexes.
auto CanCalculateInterval = [this](Register Reg) -> bool {
for (auto &Opnd : this->MRI.reg_nodbg_operands(Reg))
if (this->LIS.isNotInMIMap(*Opnd.getParent()))
return false;
return true;
};
for (auto Reg : NoIntervalRegs) {
if (CanCalculateInterval(Reg))
LIS.createAndComputeVirtRegInterval(Reg);
else
LIS.createEmptyInterval(Reg);
}
for (auto Reg : NoIntervalRegs)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no auto

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

LIS.createAndComputeVirtRegInterval(Reg);
NoIntervalRegs.clear();
}

Expand Down
Loading