https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92802
Bug ID: 92802 Summary: Struct field reordering Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: christoph.muell...@theobroma-systems.com CC: marxin at gcc dot gnu.org Target Milestone: --- Non-escaping structs [1] can be rearranged such that they have a smaller memory footprint and thus allow a more efficient cache utilisation. We are currently working on such a pass and want to use this ticket to further publish details and patches, and to collect feedback from the community. First implementation details: * Reordering is based on modification of DECL_CHAIN()s of TYPE_FIELDS(t) * Reordering based on size (biggest to smallest) [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92800