Skip to content

Implement constant folding in the frontend #7834

Closed
@pcwalton

Description

@pcwalton

We should be able to do constant folding in the frontend to eliminate "if" conditions that are never executed. It would also be nice to be able to call size_of at compile time in constants. (This latter part is an RFC.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationI-compiletimeIssue: Problems and improvements with respect to compile times.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions