assert fix: RegClass doesn't need to match for spillslots (can be reused across classes)

This commit is contained in:
Chris Fallin
2021-05-09 01:51:00 -07:00
parent 9fdc69edde
commit c380b0d979

View File

@@ -4154,7 +4154,9 @@ impl<'a, F: Function> Env<'a, F> {
let mut float_moves: SmallVec<[InsertedMove; 8]> = smallvec![]; let mut float_moves: SmallVec<[InsertedMove; 8]> = smallvec![];
for m in moves { for m in moves {
if m.from_alloc.is_reg() && m.to_alloc.is_reg() {
assert_eq!(m.from_alloc.class(), m.to_alloc.class()); assert_eq!(m.from_alloc.class(), m.to_alloc.class());
}
match m.from_alloc.class() { match m.from_alloc.class() {
RegClass::Int => { RegClass::Int => {
int_moves.push(m.clone()); int_moves.push(m.clone());