When applying vector masking we may create a mask and then transpose it.
Transpositions are extremely expensive so this patch introduces a new
canonicalization pattern that remove the tranpose operation and create a
new transposed mask.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM but please make the test a 3-D test with a permutation such as [1, 2, 0]
mlir/test/Dialect/Vector/canonicalize.mlir | ||
---|---|---|
63 | Can we make a 3-D example where permutation != permutation^-1 ? |
Can we make a 3-D example where permutation != permutation^-1 ?
2d examples are always special cases and hide mistakes.