<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61106>61106</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[mlir] `PassManager::clear` causes new passes to not be initialized
</td>
</tr>
<tr>
<th>Labels</th>
<td>
mlir:core
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Mogball
</td>
</tr>
</table>
<pre>
`clear`'ing a pass manager that has been run once and then adding new passes causes those passes to not be initialized. The reason seems to be that the `initializationKey` is not reset when `clear` is called.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskUFv3CAQhX8NvoxiYWyz9cGHVNFeqkg99A8MMGuoMKwY3Cj99RVO0ubQ00j2vDd87yFz2BLRKuavYn7q8Kg-l_U5bwZj7Ex2r6vQ0kbCIrQU6hLSBgh3ZIYdE25UoHqs4JHBECUoR4KcLAEmB9VTAnSuqRK9nDpisHi0UX1m-vhWM6RcwRCEFGrAGH6T6-GHJyiEnBMw0X7uGXq7WT2B0PLvPtaQ0zd6FVpC4NOuEFOFl_aMTxztr8UYyfWdW0e3jAt2tA76crkMeph051dlDNkv8-Kc0ouV8zzSqMbltix6mWc7dmFVUo1ylErKYZ50rybSg5tvzmqNdJvEJGnHEPsYf-19LlsXmA9a9TBI3UU0FPkMXqk9hiLGR5sLCaVaE2VtqgdzbCwmGQNX_udTQ41nZ6dufmps35H5-a0RMT42sw_Y97Q_5f_frLujxNXXeuemV1ehrluo_jC9zbtQ13b9fTzcS_5Jtgp1PZFYqOtJ9ScAAP__rg3Ctg">