mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +00:00
Check if benchmarks are weird
This commit is contained in:
parent
e53937bba6
commit
24e7a56f4b
2 changed files with 4 additions and 3 deletions
|
@ -2619,7 +2619,8 @@ 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()
|
||||
// self.stack_size(interner, target_info) as usize > target_info.max_by_value_size()
|
||||
false
|
||||
}
|
||||
|
||||
LayoutRepr::LambdaSet(lambda_set) => interner
|
||||
|
|
|
@ -68,8 +68,8 @@ impl TargetInfo {
|
|||
}
|
||||
|
||||
pub const fn max_by_value_size(&self) -> usize {
|
||||
// Pass values larger than 8 machine words by reference.
|
||||
self.ptr_size() * 8
|
||||
// Pass values larger than 1M machine words by reference.
|
||||
self.ptr_size() * 1_000_000
|
||||
}
|
||||
|
||||
pub const fn ptr_alignment_bytes(&self) -> usize {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue