Skip to content

[MIR] when should we not deaggregate? #35259

Description

@scottcarr

#35168 adds the capability of deaggregating structs like:

tmp0 = ...;
tmp1 = ...;
tmp2 = Foo { a: ..., b: ... };

Into:

tmp2.0 = ...
tmp2.1 = ...

But, one could imagine situations where this is counter productive.

It's not clear if this should be handled by the Deaggregator or MIR trans.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-MIRArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions