Skip to content

Missed optimization DIVISION by const #1163

Open
@ordinarymath

Description

@ordinarymath

Cakeml does not optimize compilation of code that divides by a const into multiplication by magic number.
See https://ridiculousfish.com/blog/posts/labor-of-division-episode-iii.html for a more information on how to calculate said magic number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions