Skip to content

Commit 38a765b

Browse files
committed
fixup! [ModuloSchedule] Implement modulo variable expansion for pipelining
1 parent 5f97d45 commit 38a765b

14 files changed

+1545
-286
lines changed

llvm/lib/CodeGen/ModuloSchedule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2394,7 +2394,7 @@ void ModuloScheduleExpanderMVE::generatePhi(
23942394
// Stage 2+ 1a 0b Kernel Unroll#0
23952395

23962396
for (MachineOperand &DefMO : OrigMI->defs()) {
2397-
if (!DefMO.isReg())
2397+
if (!DefMO.isReg() || DefMO.isDead())
23982398
continue;
23992399
Register OrigReg = DefMO.getReg();
24002400
auto NewReg = KernelVRMap[UnrollNum].find(OrigReg);

0 commit comments

Comments
 (0)