<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/80671>80671</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
GlobalISel missing divide-by-pow2 special case expansions
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:AMDGPU,
llvm:globalisel
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
arsenm
</td>
</tr>
</table>
<pre>
The DAG has special handling for divide by a power of 2. This is an optimization that also handles some legalization work for large cases that require expansion. Since this is missing, i128 divides do not work for AMDGPU on GlobalISel
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxMkcGO2zwMhJ9GvhAxJNpOnIMP-TfI4j8UKLDbB5BtxmZXllxR3jR9-iJO2vSkA8XhzDdWhAdP1KjqP1UdM7ukMcTGRiE_ZW3or837SHA8vMJoBWSmjq2D0fresR_gHCL0_Mk9QXsFC3O4UIRwBszhfWQBFrAewpx44l82cfCQRpvAOgl3GRKQMBE4Gqz78-cS4scq7mwcCDorJPfFSD8WjgT0c7ZeOPgc3th3BOlxbmIR9oPCF2CD9cOeQB_Ah_RUPnw5vn79BsHDqwutdf-_kYOsb4p-X-xtRo3Z6Z0pKl3rbGwIdVUURVlWO1NiX-xNrbu6PhdbbM1232XcoMZSo64MGoM6p3O_39ZG11trzqRbVWqaLLvcuc8pD3HIWGShptbbncmcbcnJWgNia7sP8r0qDneTClHhi0K8rariMKyGWcjdJtUxi81tsmmXQVSpHUuS55nEyVHzT8gHoQeZTXvdzOGCf8u9wX7ilWyJrhlTmkUVB4UnhaeB07i0eRcmhafV0_3ZzDF8py4pPK3ZROFpjfc7AAD__5fJzEw">