This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Vector] Fold InsertStridedSliceOp of two splat with the same input to splat.
ClosedPublic

Authored by jacquesguan on Jun 30 2022, 1:35 AM.

Details

Summary

This patch folds InsertStridedSliceOp(SplatOp(X):src_type, SplatOp(X):dst_type) to SplatOp(X):dst_type.

Diff Detail

Event Timeline

jacquesguan created this revision.Jun 30 2022, 1:35 AM
jacquesguan requested review of this revision.Jun 30 2022, 1:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 30 2022, 1:35 AM
Mogball accepted this revision.Jun 30 2022, 1:49 PM

LGTM

mlir/lib/Dialect/Vector/IR/VectorOps.cpp
2189
This revision is now accepted and ready to land.Jun 30 2022, 1:49 PM

use replaceOp with Dest rather than create a new SplatOp.

This revision was landed with ongoing or failed builds.Jun 30 2022, 7:56 PM
This revision was automatically updated to reflect the committed changes.