Skip to content

Constant spreading #30

@longfangsong

Description

@longfangsong

Is your feature request related to a problem? Please describe.
Currently when we have

%0 = add i32 1, 2

We don't have a pass for optimizing it.

Describe the solution you'd like

Write a pass which can:

  • Evaluate constant calculating result
  • Do constant spreading

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestA request for a certain featuremediumThis issue is not so easy to fix

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions