<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 - alloca scalarization with dynamic indexing into vectors deletes stores"
href="https://bugs.llvm.org/show_bug.cgi?id=15200">bug 15200</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;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</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></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - alloca scalarization with dynamic indexing into vectors deletes stores"
href="https://bugs.llvm.org/show_bug.cgi?id=15200#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - alloca scalarization with dynamic indexing into vectors deletes stores"
href="https://bugs.llvm.org/show_bug.cgi?id=15200">bug 15200</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>Looks fixed in SROA in current master.
Keeps all 4 stores for the modernized LL file
;target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f80:128:128;-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v64:64:64-v96:128:128-v128:128:128-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024--a64:64:64-f80:128:128-n8:16:32:64"
target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v96:128:128-v128:128:128-a0:0:64-f80:32:32-n8:16:32-S128-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024"
define void @test_fn(<2 x i32>* %src, <2 x i32>* %results, i32
%alignmentOffsets) nounwind alwaysinline {
entry:
%sPrivateStorage = alloca [3 x <2 x i32>], align 8
%0 = load <2 x i32>, <2 x i32>* %src, align 8
%arrayidx1 = getelementptr inbounds [3 x <2 x i32>], [3 x <2 x i32>]*
%sPrivateStorage, i64 0, i64 0
store <2 x i32> %0, <2 x i32>* %arrayidx1, align 8
%arrayidx2 = getelementptr inbounds <2 x i32>, <2 x i32>* %src, i64 1
%1 = load <2 x i32>, <2 x i32>* %arrayidx2, align 8
%arrayidx3 = getelementptr inbounds [3 x <2 x i32>], [3 x <2 x i32>]*
%sPrivateStorage, i64 0, i64 1
store <2 x i32> %1, <2 x i32>* %arrayidx3, align 8
%arrayidx4 = getelementptr inbounds <2 x i32>, <2 x i32>* %src, i64 2
%2 = load <2 x i32>, <2 x i32>* %arrayidx4, align 8
%arrayidx5 = getelementptr inbounds [3 x <2 x i32>], [3 x <2 x i32>]*
%sPrivateStorage, i64 0, i64 2
store <2 x i32> %2, <2 x i32>* %arrayidx5, align 8
%idx.ext = zext i32 %alignmentOffsets to i64
%add.ptr = getelementptr inbounds [3 x <2 x i32>], [3 x <2 x i32>]*
%sPrivateStorage, i64 0, i64 0, i64 %idx.ext
%3 = load i32, i32* %add.ptr, align 4
%4 = insertelement <2 x i32> undef, i32 %3, i32 0
%splat = shufflevector <2 x i32> %4, <2 x i32> undef, <2 x i32>
zeroinitializer
store <2 x i32> %splat, <2 x i32>* %results, align 8
ret void
}</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>