<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/59281>59281</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
InstCombine: incorrect increase of alignment of load with null_pointer_is_valid
</td>
</tr>
<tr>
<th>Labels</th>
<td>
miscompilation,
llvm:instcombine
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nunoplopes
</td>
</tr>
</table>
<pre>
```llvm
define i32 @fn() null_pointer_is_valid {
%V = load i32, ptr null, align 4
ret i32 %V
}
```
opt -S -instcombine:
```llvm
define i32 @fn() #0 {
%V = load i32, ptr null, align 4294967296
ret i32 %V
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydUcFu3CAQ_Rq4oF1hsMEcOGyyqpRzpFxX2GZ3qTBYgBPl7zPGSVtVlapWQmbGw5t5780Qp3eNBN2P968zomdET5O9umCJ44ygll4DYj1iioTV-8sSXSg2XVy-vBrvJoLkw44iBLHuhSB-Jj6aaYMj9kiWkipyiwFwC6T9ep9s2YcAbv-H5Pkz-GL1mdZvXAo5PJODC7mMcR6AJOKn3wB_lYEYp__DmqlWCcmU-Bf62OpGCNX3UkqKJ80nxZXBxRVv9RPoePyhg7gwxpTsWLYoWZMtidd9-mxD2ZJK8c2V-5-Xgdfk9b2UJW--sG9wbvB4HY5gFyTVm_06LCl-h1mQupxXmyHoFOsbfNdC9lR1hkrKh0GOUoqeGyVFy7hplByxN4P1WaPuATE2uwzdF-dNcRFMrv7BVYfx06_Lglp3xk4zyljDaEMVtFTHVnXc0JZ2VpjmOnHYlp2N88etxTGmG066ch7WW4aid7nkn0WTM1hkbeUD_c1a7jHpsIa4-LjYjKtCXeV9ADQk3mA">