Skip to content

Eliminate tuples from IR and use datatypes instead #329

Open
@jasoncarr0

Description

@jasoncarr0

With the split types pass, non-interfering usages of datatypes become distinct datatypes. Code was added for #288 that performs an analysis of datatype size, and such code is often quite cheap to run (since the set of datatypes is so small) in practice.

As such, it would be beneficial to remove Tuples from the representations. This has a couple benefits:

  • Simplifies SSA and SSA2 representations and passes
  • Enables optimizations on de-facto tuples and other small datatypes that were previously only performed for bona fide tuple types.
  • Globalizes and names information about tuple structures, improving the speed of datatype analysis, as well as reading, writing and type-checking the IR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions