<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/95547>95547</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[InstCombine]
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
aleks-tmb
</td>
</tr>
</table>
<pre>
```define void @src(i32 %0, ptr %p, i1 %cnd) {
entry:
br i1 %cnd, label %header, label %exit
header: ; preds = %latch, %entry
%iv = phi i32 [ %iv.next, %latch ], [ 256, %entry ]
%iv.trunc = trunc i32 %iv to i16
%div = udiv i16 11, %iv.trunc
br i1 %cnd, label %loop1, label %loop0
loop0: ; preds = %header
%load = load i32, ptr %p, align 4
br label %loop1
loop1: ; preds = %loop0, %header
%v = phi i32 [ %load, %loop0 ], [ 0, %header ]
store i32 %v, ptr %p, align 4
%guard = icmp ugt i32 %iv, 10
br i1 %guard, label %latch, label %loop2
loop2: ; preds = %loop1
%div.trunc = trunc i16 %div to i8
store i8 %div.trunc, ptr %p, align 1
br label %latch
latch: ; preds = %loop2, %loop1
%iv.next = add nuw nsw i32 %iv, 1
%exitcond = icmp ugt i32 %iv, 300
br i1 %exitcond, label %exit, label %header
exit: ; preds = %latch
ret void
}`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykVd1u4ywQfRp8gxrBYPxz4YukUaTvMbChNt86tgU4ad9-BbYVO063Wm1VJQPMGc6cGSbCWl13ShWInxA_R2J0TW8K0apf9s1dy6js5VeBEjL9S_WhO4VvvZYYxcSaCkGmGWAEnCB4x4Mz3h68rak3q04iyDFKT4icETmqzpkvxI7TCuPSrB3fcStK1fp1o4RUZrOlPrWbcNPn7MKOGLETHoySFiN29q6tcFXjwR4WrpzvQ8D1LXgNjcaBOz9Nu4dOfboZE_AY8XNY8xMGnqzDhaN1yIMzY1eFwJM1y6Jv2PVY02TlLWcGozc0TTClc-wlzo_qtH0_0N0OWaszbbAj_ou_nY6zxA_ubS9kOAyGZvBcdtHqusPxKoMn0k8U6b9SnPKc9NvRfVlqT32pswev67yNtCqzdb1RS1VvP2SNgNejMJNSuroOeKzdoyU8gpJdkQNkW9SljTcawrOG8PoNPORe2m7fpTRZOtK3abZNNtvAXudMX1Y68F6zDBvfsYRVNej2Wfk3GVyFlLgb77iz9ychVwA_Iaq--5PujOyFX2D7afNiIq2yCi7fj5_5GqNcGJkzMj2jhESyYDJnuYhUQVOasZQBz6KmSBhheQXAsjTJxQdJRcbiUuWESlVSSiNdAIGYJDSmjMc0O5QiJzL5EDwtq6qUFYqJugrdHtr2dj30po60taMqcs7jNArZ2DDvATp1x-EQAfjxbwqPeSvH2qKYtNo6-4jitGvDD8V_nXXv_bXUnfKg0bRF49xg_VSHC4JLrV0zloeqvyK4ePz89TaY_n9VOQSXcKtFcJlY3Qr4HQAA__94z8w-">