Skip to content

Commit

Permalink
wazevo(regalloc): specifies the VReg in swapping (#1843)
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 4f6d214 commit b4c1f26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/engine/wazevo/backend/regalloc/regalloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -833,8 +833,8 @@ func (a *Allocator) reconcileEdge(f Function,
)
}
f.SwapAtEndOfBlock(
FromRealReg(r, typ),
FromRealReg(er, typ),
currentVReg.SetRealReg(r),
desiredVReg.SetRealReg(er),
freeReg,
pred,
)
Expand Down

0 comments on commit b4c1f26

Please sign in to comment.