This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Make sure the value used to obtain tile shape is a SubViewOp/SubTensorOp.
ClosedPublic

Authored by mravishankar on Nov 20 2020, 3:56 PM.

Details

Summary

Current logic used to get the bounds of loop depends on the use of
getOrCreateRange method on SubViewOp and SubTensorOp. Make sure
that the value/dim used to compute the range is from such ops.
This fix is a reasonable WAR, but a btter fix would be to make
getOrCreateRange method be a method of ViewInterface.

Diff Detail

Event Timeline

mravishankar created this revision.Nov 20 2020, 3:56 PM
mravishankar requested review of this revision.Nov 20 2020, 3:56 PM
nicolasvasilache accepted this revision.Nov 23 2020, 9:31 AM
This revision is now accepted and ready to land.Nov 23 2020, 9:31 AM
antiagainst accepted this revision.Nov 23 2020, 9:54 AM