Skip to content

Commit

Permalink
[AIEX] Bail out from waw rewriter for spilled register
Browse files Browse the repository at this point in the history
  • Loading branch information
niwinanto committed Feb 18, 2025
1 parent 42774ee commit ad9e67d
Show file tree
Hide file tree
Showing 2 changed files with 303 additions and 1 deletion.
7 changes: 6 additions & 1 deletion llvm/lib/Target/AIE/AIEWawRegRewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,12 @@ bool AIEWawRegRewriter::renameMBBPhysRegs(const MachineBasicBlock *MBB) {
// WAW dependency resolution
if (LastVRegDef[Reg] != &MI)
continue;

// See llvm bug #48911.
// Skip reassign if a register has originated from InlineSpiller.
// FIXME: Remove the workaround when bug #48911 is fixed.
if (VRM->getPreSplitReg(Reg)) {
continue;
}
if (isWorthRenaming(Reg, VRegWithCopies)) {
assert(VRM->hasPhys(Reg));
MCRegister AssignedPhysReg = VRM->getPhys(Reg);
Expand Down
Loading

0 comments on commit ad9e67d

Please sign in to comment.