wazevo(regalloc): set reg usage flag in swaps (#1842)

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
This commit is contained in:
Takeshi Yoneda
2023-11-20 14:52:08 +09:00
committed by GitHub
parent f673e817cd
commit 4f6d214332

View File

@@ -838,6 +838,7 @@ func (a *Allocator) reconcileEdge(f Function,
freeReg,
pred,
)
s.allocatedRegSet = s.allocatedRegSet.add(freeReg.RealReg())
currentOccupantsRev[desiredVReg] = r
currentOccupantsRev[currentVReg] = er
currentOccupants.add(r, desiredVReg)