<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/95943>95943</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Excessive compile time with -O3
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang,
backend:X86,
hang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dcb314
</td>
</tr>
</table>
<pre>
For the attached code, compile time from "-g -O2" to "-g -O3" moves
from < 0.3 seconds to over 5 minutes 13 seconds on an AMD X86 box.
For in.8201.i -g -O2
times:
real 0m0.289s
user 0m0.263s
sys 0m0.024s
For in.8201.i -g -O3
times:
real 5m19.378s
user 5m13.498s
sys 0m2.942s
[in8201.i.gz](https://github.com/user-attachments/files/15888785/in8201.i.gz)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMkjFz3C4QxT8Naphj0AISFCrOvv91_0nrFqQ9iUQIj0AXO58-g0-xzymSNGJ47Lzf0-7alPy4IHZEPRB1quyWp7h2Q-9ELSsXh9fuHFeaJ6Q2Z9tPONA-DkjgkfYxPPsZafYB6WWNgRKAw0gPX4AA0Bzf76LcQ7xiIvxE-PFWLB4pZ4Im7OMypFIfr7hSRYNftoyJ1h-PcaF2ocf_T_RJN9TFF3Zzun1LRL8wDbxmnu4R7t5LwkTE8V5b0c6EGx44A232YFvC9ZfYiF1Mr2nXOMj0F674R64KtWGi1Z_BKtSCSaN_IwMzEj6RiXrwy43Lxh9EnQjoKefnNxqcCZxHn6fNsT4GAudif7gNMOCSE4Hzxc9YzlpprVutCJzvHcHc46qhE4MRxlbY1W2tW5B1K6qpGwZonFM9160zIFtttARh1KVxsneqqXwHHCRval0rACWYGVprwQhlL7VUThLJMVg_s3m-BhbXsfIpbdgZZaSoZutwTm_bCdDPdhkJAIFHAuBs_w2XgYjjk27e1WkvUadq7YrlwW1jIpLPPuX0Ack-z9j999JjSv6Kn5f5u89TmWW1rXP3h7YWt_04PK_xK_a5tLHkL629_cK1g58BAAD__4wE-fE">