<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 - [AArch64] Extremely slow code generation for series of function calls/addition"
href="https://bugs.llvm.org/show_bug.cgi?id=51147">51147</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[AArch64] Extremely slow code generation for series of function calls/addition
</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>Linux
</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>jstenglein@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=25038" name="attach_25038" title=".c file producing failure">attachment 25038</a> <a href="attachment.cgi?id=25038&action=edit" title=".c file producing failure">[details]</a></span>
.c file producing failure
In a function containing about 1000 calls and adds, we see the aarch64 target
taking about 30 minutes to do code generation. The slow pass is:
BISECT: running pass (96) AArch64 Instruction Selection on function
(len_internal)
Other targets have no issue and complete quickly.
gcc time: 0.617u 0.022s 0:00.65 96.9% 0+0k 32+160io 0pf+0w
clang aarch64 time: 1998.064u 0.135s 33:23.82 99.7% 0+0k 0+256io 0pf+0w
clang time default target: 0.706u 0.020s 0:00.74 97.2% 0+0k 0+144io 0pf+0w
Command that is slow: clang --target=aarch64-unknown-linux -O3 -c simple.c
Clang version - latest from trunk:
clang version 13.0.0 (<a href="https://github.com/llvm/llvm-project">https://github.com/llvm/llvm-project</a>
9da70ab3d43c79116f80fc06aa7cf517374ce42c)
Attached the file that causes the slowdown</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>