<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - "Mask already present!" assertion in SLP Vectorizer"
href="https://bugs.llvm.org/show_bug.cgi?id=34684">34684</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>"Mask already present!" assertion in SLP Vectorizer
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Loop Optimizer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>andrew@fubar.geek.nz
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I'm getting the following assertion with a recent clang:
Assertion failed: (UserEntry->ShuffleMask[OpdNum].empty() && "Mask already
present!"), function newTreeEntry, file
/jenkins/workspace/clang-head/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp,
line 758.
#0 0x0000000001d11568 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/jenkins/workspace/FreeBSD-arm64-head-clang/clang-head/bin/clang-6.0+0x1d11568)
#1 0x0000000001d11b96 SignalHandler(int)
(/jenkins/workspace/FreeBSD-arm64-head-clang/clang-head/bin/clang-6.0+0x1d11b96)
#2 0x0000000804bf8926 (/lib/libthr.so.3+0xe926)
#3 0x0000000804bf7ecf (/lib/libthr.so.3+0xdecf)
Stack dump:
0. Program arguments:
/jenkins/workspace/FreeBSD-arm64-head-clang/clang-head/bin/clang-6.0 -cc1
-triple aarch64-unknown-freebsd12.0 -emit-obj -O2 -vectorize-slp -x c
dmu-eef8dc.c
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'Function Pass Manager' on module 'dmu-eef8dc.c'.
4. Running pass 'SLP Vectorizer' on function '@i'
The minimised test case is (from creduce):
typedef struct { long a[4] } b;
c() {
b *d = e();
long f = 0;
for (int g = 0; g < 4; g++)
f += d->a[g];
if (f >= 0)
h();
}
i() { c(); }
The minimal clang command line to reproduce is:
clang-6.0 -cc1 -triple aarch64-unknown-freebsd12.0 -emit-obj -O2 -vectorize-slp
-x c test.c</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>