Only compare reprs in gen_dev

This commit is contained in:
Ayaz Hafiz 2023-05-11 12:48:38 -05:00
parent 4b7f09b175
commit 1b84cbafe3
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
5 changed files with 103 additions and 76 deletions

View file

@ -1159,7 +1159,7 @@ impl<
symbol: Symbol,
layout: InLayout<'a>,
) {
match layout {
match layout_interner.get(layout).repr {
single_register_layouts!() => {
let base_offset = self.claim_stack_size(8);
self.symbol_storage_map.insert(
@ -1227,7 +1227,7 @@ impl<
layout: InLayout<'a>,
base_offset: i32,
) {
match layout {
match layout_interner.get(layout).repr {
single_register_integers!() => {
let reg = self.load_to_general_reg(buf, &symbol);
ASM::mov_base32_reg64(buf, base_offset, reg);
@ -1534,7 +1534,7 @@ impl<
}
fn is_primitive(layout_interner: &mut STLayoutInterner<'_>, layout: InLayout<'_>) -> bool {
match layout {
match layout_interner.get(layout).repr {
single_register_layouts!() => true,
_ => match layout_interner.get(layout).repr {
LayoutRepr::Boxed(_) => true,