This op is an example for how to deal with ops who's OpResult may aliasing with one of multiple OpOperands.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/test/Dialect/Linalg/comprehensive-module-bufferize.mlir | ||
---|---|---|
1268 | TODO: we also need a test case where std.select needs to bufferize out of place. |
Comment Actions
Please leave a TODO somewhere that you can improve this to making 0 or 1 copies (e.g. dynamically if you put your copy operations under the same conditional as the switch; or something else as we discussed offline).
Atm you make 0, 1 or 2 copies quite greedily.
TODO: we also need a test case where std.select needs to bufferize out of place.