[Mlir-commits] [mlir] [mlir][linalg] Add a pattern to drop unit dim of `linalg.broadcast` (PR #106533)
Longsheng Mou
llvmlistbot at llvm.org
Fri Aug 30 19:13:00 PDT 2024
CoTinker wrote:
Should I refactor DropUnitDims to work in general on linalg ops. Instead of just adding new pattern for `linalg.broadcast` or `linalg.transpose`?
https://github.com/llvm/llvm-project/blob/d8bffa9018c88ef6ce441bb44d7b7d7a9091e583/mlir/lib/Dialect/Linalg/Transforms/DropUnitDims.cpp#L523-L527
But in the original dropUnitDims, creating a new Op was for `Generic `alone, and I'm not sure how to extend it to the general linalg named op.
https://github.com/llvm/llvm-project/pull/106533
More information about the Mlir-commits
mailing list