<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 - [debugify] loop-vectorize fail"
href="https://bugs.llvm.org/show_bug.cgi?id=37955">37955</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[debugify] loop-vectorize fail
</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>greg.bedwell@sony.com
</td>
</tr>
<tr>
<th>CC</th>
<td>anastasis.gramm2@gmail.com, davide@freebsd.org, llvm-bugs@lists.llvm.org, vsk@apple.com
</td>
</tr>
<tr>
<th>Blocks</th>
<td>37953
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20475" name="attach_20475" title=".ll file">attachment 20475</a> <a href="attachment.cgi?id=20475&action=edit" title=".ll file">[details]</a></span>
.ll file
>From the same source example as in <a class="bz_bug_link
bz_status_NEW "
title="NEW - [debugify] mem2reg fail (ERROR: Instruction with empty DebugLoc)"
href="show_bug.cgi?id=37954">Bug 37954</a>, from Stephen Wilks's work to
automatically find debugify failures.
$ clang -v
clang version 7.0.0 (trunk 335708) (llvm/trunk 335721)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: e:\work\upstream-llvm\build-vs2015-native-ninja\bin
$ cat loop_vectorization.cpp
void baz(int *foo, int bar) {
while (bar--)
foo[bar] = bar;
}
$ clang loop_vectorization.cpp -S -emit-llvm -O0 -Xclang -disable-O0-optnone -o
- | opt -S -O3 -opt-bisect-limit=59 -o loop-vectorize-input.ll 2>nul
$ opt loop-vectorize-input.ll -disable-output -debugify-each -loop-vectorize
ERROR: Instruction with empty DebugLoc in function ?baz@@YAXPEAHH@Z -- %index
= phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
ERROR: Instruction with empty DebugLoc in function ?baz@@YAXPEAHH@Z --
%vec.ind = phi <4 x i64> [ %induction, %vector.ph ], [ %vec.ind.next,
%vector.body ]
ERROR: Instruction with empty DebugLoc in function ?baz@@YAXPEAHH@Z --
%step.add = add <4 x i64> %vec.ind, <i64 -4, i64 -4, i64 -4, i64 -4>
ERROR: Instruction with empty DebugLoc in function ?baz@@YAXPEAHH@Z --
%index.next = add i64 %index, 8
ERROR: Instruction with empty DebugLoc in function ?baz@@YAXPEAHH@Z --
%vec.ind.next = add <4 x i64> %step.add, <i64 -4, i64 -4, i64 -4, i64 -4>
ERROR: Instruction with empty DebugLoc in function ?baz@@YAXPEAHH@Z -- %15 =
icmp eq i64 %index.next, %n.vec
ERROR: Instruction with empty DebugLoc in function ?baz@@YAXPEAHH@Z -- br i1
%15, label %middle.block, label %vector.body, !llvm.loop !30
ERROR: Instruction with empty DebugLoc in function ?baz@@YAXPEAHH@Z -- %cmp.n
= icmp eq i64 %0, %n.vec
ERROR: Instruction with empty DebugLoc in function ?baz@@YAXPEAHH@Z --
%bc.resume.val = phi i64 [ %ind.end, %middle.block ], [ %0,
%while.body.preheader ]
CheckFunctionDebugify [Loop Vectorization]: FAIL
CheckFunctionDebugify [Module Verifier]: PASS
$</pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_NEW "
title="NEW - [meta] [debugify] fix -check-debugify failures"
href="https://bugs.llvm.org/show_bug.cgi?id=37953">Bug 37953</a>] [meta] [debugify] fix -check-debugify failures
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>