Skip to content

Commit

Permalink
wazevo(regalloc): set reg usage flag in swaps (#1842)
Browse files Browse the repository at this point in the history
Signed-off-by: Takeshi Yoneda <[email protected]>
  • Loading branch information
mathetake authored Nov 20, 2023
1 parent f673e81 commit 4f6d214
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/engine/wazevo/backend/regalloc/regalloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4f6d214

Please sign in to comment.