Commit 564ce4d
Make sure memory copies get eliminated after bufferization
Bufferization of gml_st.set_yield will introduce a copy from source
into output. Add a canonicalizer pass after it to identify copies into
itself, and eliminate those.
PiperOrigin-RevId: 4842080071 parent a0da83f commit 564ce4d
File tree
1 file changed
+2
-3
lines changed- tensorflow/compiler/xla/mlir_hlo/lib/Transforms
1 file changed
+2
-3
lines changedLines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 65 | | |
69 | 66 | | |
70 | 67 | | |
| |||
106 | 103 | | |
107 | 104 | | |
108 | 105 | | |
| 106 | + | |
| 107 | + | |
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
| |||
0 commit comments