[all-commits] [llvm/llvm-project] 204eb7: [mlir][Vector] Canonicalize empty `vector.mask` in...
Diego Caballero via All-commits
all-commits at lists.llvm.org
Fri May 23 08:30:19 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 204eb70af894770fb4b9107fbcf3003cb3f9cb72
https://github.com/llvm/llvm-project/commit/204eb70af894770fb4b9107fbcf3003cb3f9cb72
Author: Diego Caballero <dieg0ca6aller0 at gmail.com>
Date: 2025-05-23 (Fri, 23 May 2025)
Changed paths:
M mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
M mlir/lib/Dialect/Vector/IR/VectorOps.cpp
M mlir/test/Dialect/Vector/canonicalize.mlir
Log Message:
-----------
[mlir][Vector] Canonicalize empty `vector.mask` into `arith.select` (#140976)
This PR adds a missing canonicalization for empty `vector.mask` ops with
a passthru value.
```
%0 = vector.mask %mask, %passthru { vector.yield %a : vector<8xf32> } :
vector<8xi1> -> vector<8xf32>
becomes:
%0 = arith.select %mask, %a, %passthru : vector<8xf32>
```
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list