<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] mem2reg fail (ERROR: Instruction with empty DebugLoc)"
href="https://bugs.llvm.org/show_bug.cgi?id=37954">37954</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[debugify] mem2reg fail (ERROR: Instruction with empty DebugLoc)
</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>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Blocks</th>
<td>37953
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20474" name="attach_20474" title="xx.ll">attachment 20474</a> <a href="attachment.cgi?id=20474&action=edit" title="xx.ll">[details]</a></span>
xx.ll
Testcase from Stephen Wilks's work on auto test-case generation/reduction. The
test-case originally failed in the loop vectorizer at -O3, but I spotted the
mem2reg failure while trying to get the minimal set of passes to reproduce.
$ clang --version
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
$ clang loop_vectorization.cpp -S -emit-llvm -O0 -Xclang -disable-O0-optnone -o
xx.ll
$ opt xx.ll -disable-output -debugify-each -mem2reg
ERROR: Instruction with empty DebugLoc in function ?baz@@YAXPEAHH@Z --
%bar.addr.0 = phi i32 [ %bar, %entry ], [ %dec, %while.body ], !dbg !28
WARNING: Missing line 1
WARNING: Missing line 2
WARNING: Missing line 3
WARNING: Missing line 4
WARNING: Missing line 6
WARNING: Missing line 8
WARNING: Missing line 11
WARNING: Missing line 12
WARNING: Missing line 13
CheckFunctionDebugify [Promote Memory to Register]: 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>