From 8083bcb0e83a26273deeaf0d57c580b14cf0a941 Mon Sep 17 00:00:00 2001 From: mlokr Date: Tue, 10 Sep 2024 16:32:15 +0200 Subject: [PATCH] fixing the overoptimization --- hblang/src/codegen.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/hblang/src/codegen.rs b/hblang/src/codegen.rs index 5cd95bd..2a9d6b7 100644 --- a/hblang/src/codegen.rs +++ b/hblang/src/codegen.rs @@ -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())