<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 - compile-time explosion at -O1 to -Os in Clang-12 and Clang-trunk versions"
href="https://bugs.llvm.org/show_bug.cgi?id=50308">50308</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>compile-time explosion at -O1 to -Os in Clang-12 and Clang-trunk versions
</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>Scalar Optimizations
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>haoxintu@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Hi all,
Clang-12 and Clang-trunk versions spend infinite time to compile the following
short valid C program (under -O1 to -Os).
$cat small.c
#include <stdint.h>
int ui_2, s_3, ui_5;
void fn1(int i_8) {
uint32_t *ptr_14 = &ui_5;
int16_t *ptr_16 = ui_2 -= i_8 ? (ui_5 <= *ptr_14) + (1 + s_3 ^ ui_2) :
*ptr_16;
}
Reproduced in Godbolt: <a href="https://godbolt.org/z/eYnxhM6Me">https://godbolt.org/z/eYnxhM6Me</a>
Thanks,
Haoxin</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>