Skip to content

scf::tileConsumerAndFuseProducerGreedilyUsingSCFForOp does not work for unpack + generic case #11505

Closed

Description

@hanhanW

We're able to use tiling interface for tile + fuse the ops, but not scf::tileConsumerAndFuseProducerGreedilyUsingSCFForOp.

There are no errors in the method, but it failed at the end of replacing ops.

mlir::detail::Interface<mlir::linalg::LinalgOp, m
lir::Operation *, mlir::linalg::detail::LinalgOpInterfaceTraits, mlir::Op<mlir::linalg::LinalgOp>, mlir::OpTrait::TraitBase>::Interface(ValueT) [ConcreteType = mlir::linalg::LinalgOp, ValueT = mlir::Operation *, Traits = mlir::linalg::detail::LinalgOpInterfaceTraits, BaseType = mlir::Op<mlir::linalg::LinalgOp>, BaseTrait = mlir::OpTrait::TraitBase]: Assertion `(!t || impl) && "expected value to provide interface instance"' failed.

To repro: iree-opt --linalg-fuse="tile-sizes=16,16" ~/repro.mlir

repro.mlir: https://gist.githubusercontent.com/hanhanW/9ba91d8fec99a15760ea32274fb951e4/raw

Activity

  1. added
    codegen
    on Dec 9, 2022
  2. added
    bug 🐞
    on Dec 14, 2022
  3. hanhanW commented on Jan 31, 2023

    @hanhanW
    ContributorAuthor

    @MaheshRavishankar this is the issue that we've talked about.

  4. added a commit that references this issue on Feb 1, 2023
    81df2e1
  5. added a commit that references this issue on Feb 2, 2023
    b77145d
  6. added a commit that references this issue on Feb 3, 2023
    b9cb1b7
  7. MaheshRavishankar commented on Feb 9, 2023

    @MaheshRavishankar
    Collaborator

    I am guessing you mean there is still an issue?

  8. hanhanW commented on Feb 9, 2023

    @hanhanW
    ContributorAuthor

    I have to verify it.. My intention was "this is addressed by Mahesh". :p

  9. hanhanW commented on Feb 9, 2023

    @hanhanW
    ContributorAuthor

    verified that it's fixed.

  10. added a commit that references this issue on Apr 2, 2023
    fe2ff83
  11. added a commit that references this issue on May 1, 2023
    70b2a33
  12. added a commit that references this issue on May 2, 2023
    456744d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug 🐞codegen

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions