1
0
Fork 0
forked from koniifer/ableos

fixing the overoptimization

This commit is contained in:
mlokr 2024-09-10 16:32:15 +02:00
parent 1c088e2839
commit ed81d3f761

View file

@ -2209,8 +2209,6 @@ impl Codegen {
},
left.loc,
)
} else if left.loc.is_ref() && left.loc.is_reg() {
(self.loc_to_reg(&left.loc, lsize), self.ci.regs.allocate(), left.loc)
} else {
let lhs = self.loc_to_reg(left.loc, lsize);
(lhs.as_ref(), lhs, Loc::default())