<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Floating Point Exception with -loop-vectorize and 0-sized type" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23763&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=B34F2hj49HKjiG-OjaJBnS8_QMUpX33OJ_xSfe4LYOo&s=DlfNaJj0vHKpXXTjBXIZlGXOQqJsFy7C7fJpFNT1g7E&e=">23763</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Floating Point Exception with -loop-vectorize and 0-sized type
</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>normal
</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>alex@crichton.co
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=14438" name="attach_14438" title="bugpoint-reduced IR">attachment 14438</a> <a href="attachment.cgi?id=14438&action=edit" title="bugpoint-reduced IR">[details]</a></span>
bugpoint-reduced IR
When optimized with the `-loop-vectorize` pass via `opt`, the attached IR will
trigger a floating point exception (divide-by-zero) in the optimization passes.
The stack trace on failure is:
$ ./Debug+Asserts/bin/opt bugpoint-reduced-simplified.ll -loop-vectorize -S
0 opt 0x00000000024c281e
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 46
1 opt 0x00000000024c3859
2 opt 0x00000000024c648d
3 libpthread.so.0 0x00007fc4b82a7340
4 opt 0x0000000001e4d8b8 llvm::isInductionPHI(llvm::PHINode*,
llvm::ScalarEvolution*, llvm::ConstantInt*&) + 488
5 opt 0x0000000001a619c9
6 opt 0x0000000001a5fea0
7 opt 0x0000000001a400a9
8 opt 0x0000000001a3eacc
9 opt 0x0000000001a3e076
10 opt 0x00000000023e9c5b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 427
11 opt 0x00000000023e9f68
llvm::FPPassManager::runOnModule(llvm::Module&) + 104
12 opt 0x00000000023ea64a
13 opt 0x00000000023ea21e
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 302
14 opt 0x00000000023eac11
llvm::legacy::PassManager::run(llvm::Module&) + 33
15 opt 0x000000000084322e main + 7486
16 libc.so.6 0x00007fc4b72a6ec5 __libc_start_main + 245
17 opt 0x000000000081c474
Stack dump:
0. Program arguments: ./Debug+Asserts/bin/opt
/home/alex/code/rust4/bugpoint-reduced-simplified.ll -loop-vectorize -S
1. Running pass 'Function Pass Manager' on module
'/home/alex/code/rust4/bugpoint-reduced-simplified.ll'.
2. Running pass 'Loop Vectorization' on function '@foo'
zsh: floating point exception (core dumped) ./Debug+Asserts/bin/opt
~/code/rust4/bugpoint-reduced-simplified.ll -S</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>