assert fix: RegClass doesn't need to match for spillslots (can be reused across classes)
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user