mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Try to help the branch predictor
This commit is contained in:
parent
eb5439ee96
commit
c5289522e5
1 changed files with 1 additions and 3 deletions
|
@ -639,9 +639,7 @@ impl<'a> Layout<'a> {
|
|||
let width = self.stack_size_without_alignment(pointer_size);
|
||||
let alignment = self.alignment_bytes(pointer_size);
|
||||
|
||||
if alignment == 0 {
|
||||
width
|
||||
} else if width % alignment > 0 {
|
||||
if alignment != 0 && width % alignment > 0 {
|
||||
width + alignment - (width % alignment)
|
||||
} else {
|
||||
width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue