<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 - [IndVarSimplify, ScalarEvolution] Compilation hang"
href="https://bugs.llvm.org/show_bug.cgi?id=43319">43319</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[IndVarSimplify, ScalarEvolution] Compilation hang
</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>Linux
</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>paulsson@linux.vnet.ibm.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=22498" name="attach_22498" title="unreduced test case">attachment 22498</a> <a href="attachment.cgi?id=22498&action=edit" title="unreduced test case">[details]</a></span>
unreduced test case
This compilation takes a second at -O1, but has been running for a week at -O3.
It seems that IndVarSimplify calls getBackedgeTakenCount() on an inner loop
with ~30 exiting blocks, which seems to never return.
opt -mtriple=s390x-linux-gnu -mcpu=arch13 -O3 -o out.opt.ll test10872.bc
original command:
clang -cc1 -triple s390x-ibm-linux -S -save-temps=cwd -disable-free
-main-file-name test10872.c -mrelocation-model static -mthread-model posix
-mframe-pointer=none -fmath-errno -masm-verbose -mconstructor-aliases
-fuse-init-array -target-cpu arch13 -dwarf-column-info -debugger-tuning=gdb -O3
-ferror-limit 19 -fmessage-length 0 -fno-signed-char -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-faddrsig -o test10872.s -x ir test10872.bc</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>