Open
Description
This function calls memset
:
fn create_uninit_array() -> [[MaybeUninit<u8>; 4]; 200] {
[[MaybeUninit::<u8>::uninit(); 4]; 200]
}
and this one doesn't:
fn create_uninit_array_fast() -> [MaybeUninit<u8>; 800] {
[MaybeUninit::<u8>::uninit(); 800]
}
I would have expected the same assembly to be generated for both cases.
Metadata
Metadata
Assignees
Labels
Category: This is a bug.Category: An issue highlighting optimization opportunities or PRs implementing suchIssue: Problems and improvements with respect to performance of generated code.Relevant to the compiler team, which will review and decide on the PR/issue.This issue may need triage. Remove it if it has been sufficiently triaged.