Another fuzzbug fix: proper checker-hint ordering when V-R and V-V moves are back-to-back and RReg ownership changes

This commit is contained in:
Chris Fallin
2021-05-22 14:37:56 -07:00
parent 4b46c6388a
commit 469669155f

View File

@@ -1310,7 +1310,7 @@ impl<'a, F: Function> Env<'a, F> {
// checker. // checker.
self.add_edit( self.add_edit(
ProgPoint::before(inst), ProgPoint::before(inst),
InsertMovePrio::Regular, InsertMovePrio::MultiFixedReg,
Edit::DefAlloc { Edit::DefAlloc {
alloc: Allocation::reg(preg), alloc: Allocation::reg(preg),
vreg: dst.vreg(), vreg: dst.vreg(),
@@ -1347,7 +1347,7 @@ impl<'a, F: Function> Env<'a, F> {
// not the preg. This is used by // not the preg. This is used by
// the checker. // the checker.
self.add_edit( self.add_edit(
ProgPoint::before(inst), ProgPoint::after(inst),
InsertMovePrio::Regular, InsertMovePrio::Regular,
Edit::DefAlloc { Edit::DefAlloc {
alloc: Allocation::reg(preg), alloc: Allocation::reg(preg),