This is an archive of the discontinued LLVM Phabricator instance.

[mlir][tensor] Clean up tensor::DimOp usage
ClosedPublic

Authored by springerm on Jun 20 2023, 5:38 AM.

Details

Summary
  • Remove duplicate functions. tensor::getMixedSize and tensor::getMixedSizes should be used.
  • Use tensor::getMixedSize instead of createOrFold<tensor::DimOp>. This is more efficient. createOrFold will create an op an immediately try to fold it. In case of a static dimension size, an attribute can be used directly.

Depends On: D153324

Diff Detail