<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 - slp-vectorizer: Instruction does not dominate all uses!"
href="https://bugs.llvm.org/show_bug.cgi?id=38339">38339</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>slp-vectorizer: Instruction does not dominate all uses!
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bjorn.a.pettersson@ericsson.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20609" name="attach_20609" title="reproducer">attachment 20609</a> <a href="attachment.cgi?id=20609&action=edit" title="reproducer">[details]</a></span>
reproducer
Running the attached program using
opt -slp-vectorizer -S -mtriple=aarch64-apple-ios -mcpu=cyclone
slp-vectorizer-shuffle-cyclone.ll
gives
Instruction does not dominate all uses!
%shuffle = shufflevector <2 x i16> %1, <2 x i16> undef, <4 x i32> <i32 0, i32
1, i32 1, i32 0>
%2 = extractelement <4 x i16> %shuffle, i32 0
LLVM ERROR: Broken function found, compilation aborted!
I think this started to happen after this commit
commit b09f726df5f5c7de6b05cd3e65bdccee5c78bf3f (HEAD)
Author: Alexey Bataev <<a href="mailto:a.bataev@hotmail.com">a.bataev@hotmail.com</a>>
Date: Tue Apr 3 16:40:33 2018 +0000
Recommit "[SLP] Fix issues with debug output in the SLP vectorizer."
The primary issue here is that using NDEBUG alone isn't enough to guard
debug printing -- instead the DEBUG() macro needs to be used so that the
specific pass debug logging check is employed. Without this, every
asserts-enabled build was printing out information when it hit this.
I also fixed another place where we had multiple statements in a DEBUG
macro to use {}s to be a bit cleaner. And I fixed a place that used
errs() rather than dbgs().
git-svn-id: <a href="https://llvm.org/svn/llvm-project/llvm/trunk@329082">https://llvm.org/svn/llvm-project/llvm/trunk@329082</a>
91177308-0d34-0410-b5e6-96231b3b80d8
if I move to the previous commit in
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
commit 4832f865cf84eb9ff1c397353cfc400290fbb9bc
Author: Benjamin Kramer <<a href="mailto:benny.kra@googlemail.com">benny.kra@googlemail.com</a>>
Date: Tue Apr 3 14:40:33 2018 +0000
Revert "[SLP] Fix PR36481: vectorize reassociated instructions."
This reverts commit r328980 and r329046. Makes the vectorizer crash.
git-svn-id: <a href="https://llvm.org/svn/llvm-project/llvm/trunk@329071">https://llvm.org/svn/llvm-project/llvm/trunk@329071</a>
91177308-0d34-0410-b5e6-96231b3b80d8
I do not get the error.</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>