HomePhabricator

Refactor GenericPadTensorOpVectorizationPattern

Authored by cathyzhyi on Jul 6 2021, 9:01 AM.

Description

Refactor GenericPadTensorOpVectorizationPattern

Refactor the original code to rewrite a PadTensorOp into a
sequence of InitTensorOp, FillOp and InsertSliceOp without
vectorization by default. GenericPadTensorOpVectorizationPattern
provides a customized OptimizeCopyFn to vectorize the
copying step.

Reviewed By: silvas, nicolasvasilache, springerm

Differential Revision: https://reviews.llvm.org/D105293

Details

Committed
nicolasvasilacheJul 7 2021, 4:44 AM
Reviewer
silvas
Differential Revision
D105293: Refactor GenericPadTensorOpVectorizationPattern
Parents
rG9a0af63d05ee: [mlir][Linalg] Proper handling of ForOp and TiledLoopOp
Branches
Unknown
Tags
Unknown