This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] Only compose PadTensorOps if no ExtractSliceOp is rank-reducing.
ClosedPublic

Authored by gysit on Dec 8 2021, 11:53 PM.

Details

Summary

Do not compose pad tensor operations if the extract slice of the outer pad tensor operation is rank reducing. The inner extract slice op cannot be rank-reducing since it source type must match the desired type of the padding.

Depends On D115359

Diff Detail

Event Timeline

gysit created this revision.Dec 8 2021, 11:53 PM
gysit requested review of this revision.Dec 8 2021, 11:53 PM
nicolasvasilache accepted this revision.Dec 13 2021, 1:18 AM
This revision is now accepted and ready to land.Dec 13 2021, 1:18 AM
This revision was landed with ongoing or failed builds.Dec 13 2021, 5:08 AM
This revision was automatically updated to reflect the committed changes.