File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1495,8 +1495,6 @@ LogicalResult mlir::spirv::unrollVectorsInFuncBodies(Operation *op) {
14951495 RewritePatternSet patterns (context);
14961496 auto options = vector::UnrollVectorOptions ().setNativeShapeFn (
14971497 [](auto op) { return mlir::spirv::getNativeVectorShape (op); });
1498- vector::populateVectorFromElementsLoweringPatterns (patterns);
1499- vector::populateVectorToElementsLoweringPatterns (patterns);
15001498 populateVectorUnrollPatterns (patterns, options);
15011499 if (failed (applyPatternsGreedily (op, std::move (patterns))))
15021500 return failure ();
Original file line number Diff line number Diff line change 1212
1313#include " mlir/Dialect/Affine/IR/AffineOps.h"
1414#include " mlir/Dialect/Utils/IndexingUtils.h"
15+ #include " mlir/Dialect/Vector/Transforms/LoweringPatterns.h"
1516#include " mlir/Dialect/Vector/Transforms/VectorTransforms.h"
1617#include " mlir/Interfaces/VectorInterfaces.h"
1718#include " llvm/ADT/MapVector.h"
@@ -814,6 +815,8 @@ struct UnrollBroadcastPattern : public OpRewritePattern<vector::BroadcastOp> {
814815void mlir::vector::populateVectorUnrollPatterns (
815816 RewritePatternSet &patterns, const UnrollVectorOptions &options,
816817 PatternBenefit benefit) {
818+ populateVectorToElementsLoweringPatterns (patterns);
819+ populateVectorFromElementsLoweringPatterns (patterns);
817820 patterns.add <UnrollTransferReadPattern, UnrollTransferWritePattern,
818821 UnrollContractionPattern, UnrollElementwisePattern,
819822 UnrollReductionPattern, UnrollMultiReductionPattern,
You can’t perform that action at this time.
0 commit comments