Revert "Check if benchmarks are weird"

This reverts commit 24e7a56f4b.
This commit is contained in:
Ayaz Hafiz 2023-06-16 15:26:02 -05:00
parent 24e7a56f4b
commit 314cc7855a
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 3 additions and 4 deletions

View file

@ -2619,8 +2619,7 @@ impl<'a> LayoutRepr<'a> {
LayoutRepr::Union(UnionLayout::NonRecursive(_)) => true,
LayoutRepr::Struct(_) => {
// TODO: write tests for this!
// self.stack_size(interner, target_info) as usize > target_info.max_by_value_size()
false
self.stack_size(interner, target_info) as usize > target_info.max_by_value_size()
}
LayoutRepr::LambdaSet(lambda_set) => interner

View file

@ -68,8 +68,8 @@ impl TargetInfo {
}
pub const fn max_by_value_size(&self) -> usize {
// Pass values larger than 1M machine words by reference.
self.ptr_size() * 1_000_000
// Pass values larger than 8 machine words by reference.
self.ptr_size() * 8
}
pub const fn ptr_alignment_bytes(&self) -> usize {