<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/92198>92198</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[GVNSink] Reuse value numbering from GVN
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
hiraditya
</td>
</tr>
</table>
<pre>
GVNSink has a custom gvn code see:
https://github.com/llvm/llvm-project/blob/93b47053c6bce5862ba4a5f7d9f6d5cbaa8cbf41/llvm/lib/Transforms/Scalar/GVNSink.cpp#L504 This is not maintainable, we can reuse the one from GVN similar to how GVNHoist does it https://llvm.org/doxygen/GVNHoist_8cpp_source.html#l00225.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkstunjAQhZ_GbEZFZsBcFizSRqSLKosmyjbyZQC3xv5lm6T_21fQpJdlV5ZtzdE35xyZkl080cjERyZuC7nnNcRxtVEam6-yUMFcx7un-wfrv8MqE0jQe8phg-XFgw6GIBGx-obxW8Zv1pwv6bjhxHBabF53VeqwMZyce3k_Plxi-EY6M5yUC4rhNNSq6biodas0ib5FJRsp5s4Mc2uEVlL2Ws1N9ZeOPeYeo_RpDnFLDKcHLZ2MDKc33lJfLgzrL4I38LjaBDaBDxk2aX2W1kvliOEneCXQ0kOkPRHklSB4gjmGDe6e7iHZzToZIQdYw-vx9DnYlMEESmAz_LvyQVeGuDCcTPhxXcj_4jlnnnt9uTynsEdN5Zo3x7B2nCOKsjBjbYZ6kAWNVVeJrsau74t17DivZm6GSpNse9PpXnVdJQfZ0FDhTIUdkWPDRSU4xxb7UvSm68ggKd62qBRrOG3SuvKdrbAp7TQOWA194aQil878ET29wvnJEI86xPGMS-1LYg13NuX0RyXb7M7ivNnNxC18PT18kW4n8PumKFq__Pay2KMb_7siJ9CR7wn8MwAA___yh97z">