Unverified Commit 173fd67a authored by Matthias Springer's avatar Matthias Springer Committed by GitHub
Browse files

[mlir][scf][bufferize] Improve bufferization of allocs yielded from `scf.for` (#68089)

The `BufferizableOpInterface` implementation of `scf.for` currently
assumes that an OpResult does not alias with any tensor apart from the
corresponding init OpOperand. Newly allocated buffers (inside of the
loop) are also allowed. The current implementation checks whether the
respective init_arg and yielded value are equivalent. This is overly
strict and causes extra buffer allocations/copies when yielding a new
buffer allocation from a loop.
parent 464dfeba
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment