iree
iree copied to clipboard
[Codegen][GPU] Add pass to reuse shared memory buffers in simple cases
This PR adds a new pass that tries to reuse shared memory allocations in functions. This pass only does a very basic analysis, assuming no control flow operations (and is conservative with structured control flow), but it is useful for some of the cases that show up in practice with the current pipelines.