<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:florian_hahn@apple.com" title="Florian Hahn <florian_hahn@apple.com>"> <span class="fn">Florian Hahn</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [loop vectorizer] unoptimized vectorized code for induction variable"
href="https://bugs.llvm.org/show_bug.cgi?id=24413">bug 24413</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>florian_hahn@apple.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [loop vectorizer] unoptimized vectorized code for induction variable"
href="https://bugs.llvm.org/show_bug.cgi?id=24413#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [loop vectorizer] unoptimized vectorized code for induction variable"
href="https://bugs.llvm.org/show_bug.cgi?id=24413">bug 24413</a>
from <span class="vcard"><a class="email" href="mailto:florian_hahn@apple.com" title="Florian Hahn <florian_hahn@apple.com>"> <span class="fn">Florian Hahn</span></a>
</span></b>
<pre>This seems fixed in current trunk. On X86 we generate the following
vector.body. We use a scalar add to increment the induction variable. Please
feel free to re-open, if your issue still persists.
LBB0_4: ## %vector.body
## =>This Inner Loop Header: Depth=1
movq (%rdi,%rax,2), %xmm3 ## xmm3 = mem[0],zero
punpcklwd %xmm0, %xmm3 ## xmm3 =
xmm3[0],xmm0[0],xmm3[1],xmm0[1],xmm3[2],xmm0[2],xmm3[3],xmm0[3]
movq 8(%rdi,%rax,2), %xmm4 ## xmm4 = mem[0],zero
punpcklwd %xmm0, %xmm4 ## xmm4 =
xmm4[0],xmm0[0],xmm4[1],xmm0[1],xmm4[2],xmm0[2],xmm4[3],xmm0[3]
pand %xmm2, %xmm3
paddd %xmm3, %xmm0
pand %xmm2, %xmm4
paddd %xmm4, %xmm1
addq $8, %rax
cmpq %rax, %rsi
jne LBB0_4
## %bb.5:</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>