Skip to content

Make const deduplication RW-aware #99

@lvella

Description

@lvella

Const deduplication doesn't propagate outer consts to loops, due to it being expensive in WOM mode. But in RW mode, since loops execute in the same frame as the parent, it is cheap and desirable for loops to use outside consts. In fact, this is related to the const hoistering optimization for RW mode described in TODO-optimizations.txt file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions