This patch removes vector.mask operations with all-true masks (i.e.,
all lanes enabled).
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/Vector/IR/VectorOps.cpp | ||
---|---|---|
5690 | Should this just be a folding pattern or do you see particular reasons to not always apply this folding? |
mlir/lib/Dialect/Vector/IR/VectorOps.cpp | ||
---|---|---|
5690 | +1, it looks more like a folding pattern to me |
mlir/lib/Dialect/Vector/IR/VectorOps.cpp | ||
---|---|---|
5690 | I tried that but the folding patters are pretty limited. I can't use a rewriter or move instructions around. I tried returning the maskable operations to replace the vector.mask one but it crashes as the maskable operation is nested within the operation to be replaced. Let me give it another try. Let me know if you have any suggestions in this regard. |
Should this just be a folding pattern or do you see particular reasons to not always apply this folding?