From: bors Date: Thu, 4 Aug 2016 10:01:37 +0000 (-0700) Subject: Auto merge of #35168 - scottcarr:deaggregation, r=nikomatsakis X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=e804a3cf256106c097d44f6e0212cd183122da07;p=rust.git Auto merge of #35168 - scottcarr:deaggregation, r=nikomatsakis [MIR] Deaggregate structs to enable further optimizations Currently, we generate MIR like: ``` tmp0 = ...; tmp1 = ...; tmp3 = Foo { a: ..., b: ... }; ``` This PR implements "deaggregation," i.e.: ``` tmp3.0 = ... tmp3.1 = ... ``` Currently, the code only deaggregates structs, not enums. My understanding is that we do not have MIR to set the discriminant of an enum. --- e804a3cf256106c097d44f6e0212cd183122da07