<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57168>57168</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
mlir: add getUniqueUsers
</td>
</tr>
<tr>
<th>Labels</th>
<td>
mlir:core
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
silvasean
</td>
</tr>
</table>
<pre>
A gotcha I recently learned is that Value::getUsers() doesn't dedupe the users if there are multiple uses by one operation. There should be an easy way to get this functionality when that is what is needed. I suggest calling this Value::getUniqueUsers()
Re: https://github.com/llvm/torch-mlir/pull/1228
cc @ramiro050
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFUcuK3DAQ_Br70qzxyCM_DjpMWBZyDUnubaltK2gkR49d5u_T9i7kcQlIaorqrq5CczAPdYM1ZL0hfIZImnx2D3CE0ZMBmyBvmOE7ukJVd-OzUv6WKKZKjJWYwARKvhJDBkOm7MT9BOVoALscIBIg33tx2e7u5BLMDwieIOwUMdvgG_h6dqYtFGdg5hkPhOkBb_iAHIC3shjbWYrXxwQ6m5ndyL87ZOrto3oi9tJwnlTWlVIGjc5Zv74r_JPF25-F_khUtc9Ve3t_vxx9sOW8p2NAvPBZbd7K3OhwZ-Dc61FyiHp7ujsbGezFOS4XwXKnitZQXduIdxtDK9ua1KXv276V4yhrozozdRPW2WZH6tTgnWgM_O2uLtGp_1s5ytMeww_SmaFNqRAne5HDpR_rTU3jIKeB5usyo77IlszSC4mjGLpuEoupHc7kkqrkp0qIDzs6RGJUyefaKtEK0Y4XKTpxvV4bM_WDmNB0ehFaypmj0h2taw4nTYhrHdVpai5rYtLZlNNvElOyK__YuZD1seQtRJWse8VE6OszgTrt_wLszeEf">