Skip to content

[mlir][linalg][promotion] Allow promoting dynamic buffer with dynamic alloc size #144268

Open
@BZZiv

Description

@BZZiv

Currently linalg promotion transform attempts to allocate the promoted buffer with the smallest size. It is achieved by computing a constant upper bound for the promoted subviews, and only when the computation fails it fallbacks to dynamic allocation size. It would be nice to have the option to prefer the exact allocation size, even at the price of dynamic allocation.

I'd be happy to add the support myself if there's interest.

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