<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/98322>98322</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[MLIR] OOM when using mlir-opt --canonicalize with a program with a single big function
</td>
</tr>
<tr>
<th>Labels</th>
<td>
mlir
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
edg-l
</td>
</tr>
</table>
<pre>
Looks like if the single region in a function is big enough, it takes forever and it simply consumes all your RAM, getting OOM.
The MLIR program: https://gist.github.com/edg-l/2c988e73a459afb130f983cf5e112ea0
```
# run on the provided program above to get a OOM
mlir-opt --canonicalize program.mlir
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0kuFq5CAQx5_GfBk26CTpJh_yYe_KwkFLodwLGDMxXo0GNVt6T3-Y3b0rhYMQGXWc_3_mJ2M02hH1rPnGmsdCbmn2oadRH2wx-PGjf_L-LYI1bwRmgjQTROO0JQikjXdgHEiYNqfSHkUYjAZyftMzw-9gEiT5RhEmH-hCAaQb82Y0y2o_QHkXt4UiSGvhw28BXk_POU9TSsZpeHl5Lhl_ZPx0_f-cCZ6ffrzCGrwOcmHVCeaU1siqE8Mzw7M2MZXapHkbSuUXhufdDcMzqq5t6VjJuunkNIiKT11bqakhIZAk_1yHPfDbdw2xgrA58G5vwRr8xYw03lWAHPyFIPmsG2RWfc1brAkHvyY4HJR03hklrflN97wyn38pWIx9NXZVJwvqxRH5A3LRiWLu2wc1DaITtVJVO-AkhTzWY9NNAkXLm6YwPXKs-VFwUfNKiJIG2v01SPWoqGM1p0UaW1p7WUofdGFi3Kjv2gqxsHIgG3cSEHdhiJmJ0Ofrh2HTkdXcmpjivweSSXanJw-FNY_ZOrzP5GDLnMD_GvBu0gzyb_9u4Q2tjNAdqWILtv864U_DzUpuy2EN_hepxPC8-4oMz1drlx7_BAAA___NWu1_">