This is an archive of the discontinued LLVM Phabricator instance.

[mlir][SCF][bufferize] Support different iter_arg/init_arg types (scf.for)
ClosedPublic

Authored by springerm on Aug 29 2022, 9:12 AM.

Details

Summary

Even though iter_arg and init_arg of an scf.for loop may have the same tensor type, their bufferized memref types are not necessarily equal. It is sometimes necessary to insert a cast in case of differing layout maps.

Depends On D132859

Diff Detail