Commit d45b427
authored
[MLIR] Define memory effects for
Currently `memref.prefetch` has no memory side effects, which are
necessary for some optimizations.
This PR adds the needed side effect, as recommended in
https://discourse.llvm.org/t/modeling-volatility-with-memory-effects/67946
This PR was created after a discussion on this specific topic here
https://discourse.llvm.org/t/memref-prefetch-op-has-no-memory-side-effects-decoration-in-the-def-td-file/87482
---------
Signed-off-by: Alexandre Eichenberger <[email protected]>memref.prefetch operation (#151261)1 parent 89e2d58 commit d45b427
File tree
2 files changed
+17
-2
lines changed- mlir
- include/mlir/Dialect/MemRef/IR
- test/Dialect/Bufferization/Transforms/OwnershipBasedBufferDeallocation
2 files changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1414 | 1414 | | |
1415 | 1415 | | |
1416 | 1416 | | |
1417 | | - | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
1418 | 1425 | | |
1419 | 1426 | | |
1420 | 1427 | | |
| |||
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments