fixing the overoptimization

This commit is contained in:
mlokr 2024-09-10 16:32:15 +02:00
parent 8928888481
commit 8083bcb0e8
No known key found for this signature in database
GPG key ID: DEA147DDEE644993

View file

@ -2209,8 +2209,6 @@ impl Codegen {
}, },
left.loc, 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 { } else {
let lhs = self.loc_to_reg(left.loc, lsize); let lhs = self.loc_to_reg(left.loc, lsize);
(lhs.as_ref(), lhs, Loc::default()) (lhs.as_ref(), lhs, Loc::default())