[all-commits] [llvm/llvm-project] d5a0fb: [mlir][vector] Handle empty `MaskOp` in `LowerVect...

Felix Schneider via All-commits all-commits at lists.llvm.org
Sat Nov 11 23:12:41 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d5a0fb39ae1d481fe75c3d2c3d42df3de977762b
      https://github.com/llvm/llvm-project/commit/d5a0fb39ae1d481fe75c3d2c3d42df3de977762b
  Author: Felix Schneider <fx.schn at gmail.com>
  Date:   2023-11-12 (Sun, 12 Nov 2023)

  Changed paths:
    M mlir/lib/Dialect/Vector/Transforms/LowerVectorMask.cpp
    M mlir/test/Dialect/Vector/lower-vector-mask.mlir

  Log Message:
  -----------
  [mlir][vector] Handle empty `MaskOp` in `LowerVectorMask`, `MaskOpRewritePattern` (#72031)

This patch adds handling of an empty `MaskOp` to `MaskOpRewritePattern`
and thereby fixes a crash.
It also pulls the `MaskOp` canonicalization patterns into
`LowerVectorMask` so that empty `MaskOp`s are folded away in the Pass.

Fix https://github.com/llvm/llvm-project/issues/71036




More information about the All-commits mailing list