llvm-project
c0200bc3 - [mlir][ArmSME] Legalize writes in `vector.mask` (#246947)

Commit
1 day ago
[mlir][ArmSME] Legalize writes in `vector.mask` (#246947) ArmSME legalization creates new ops inside a `vector.mask` region which is invalid IR. A write has no passthru, so `vector.mask { transfer_write }` is equivalent to the mask operand. The patterns now take the mask from the _operand_ (will be deleted via #239511) or from the enclosing `vector.mask`, and replace the `Xfer_write` first and then the `vector.mask`. Part of #239511 and #240114 (item 16). RFC: https://discourse.llvm.org/t/rfc-unify-masking-in-the-vector-dialect/92675 This supersedes the bailouts of #246463. --------- Signed-off-by: Federico Bruzzone <federico.bruzzone.i@gmail.com>
Parents
Loading