]> git.lizzy.rs Git - rust.git/commit
Auto merge of #36151 - camlorn:struct_layout_optimization, r=eddyb
authorbors <bors@rust-lang.org>
Mon, 26 Sep 2016 01:47:00 +0000 (18:47 -0700)
committerGitHub <noreply@github.com>
Mon, 26 Sep 2016 01:47:00 +0000 (18:47 -0700)
commit9966397b61d5e065b692c59f4f721e31d038f1fc
tree73cce1018c590b96c8330ef37682207579fad280
parent95abee1a680f008fb97472294dd376a66e06d311
parent467454b0d2577795a579968ebd7bfa3bf9753404
Auto merge of #36151 - camlorn:struct_layout_optimization, r=eddyb

refactor to remove trans::adt and make rustc::ty::layout authoritative

I asked on IRC about optimizing struct layout by reordering fields from most-aligned to least-aligned and somehow ended up getting talked into doing this.  The goal here is to make `layout` authoritative and to remove `adt`.  The former has been accomplished by reimplementing `represent_type_uncached` and the latter is in progress.  @eddyb thought I should make the PR now.

My plan is to reserve the actual optimization for a second PR, as this work is useful by itself.