<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/124049>124049</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Fortran test with many self-referencing types takes "forever" to compile with -g
</td>
</tr>
<tr>
<th>Labels</th>
<td>
regression,
debuginfo,
flang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
eugeneepshteyn
</td>
</tr>
</table>
<pre>
Test: https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0394/0394_0031.f90
This test used to compile quickly (less than 2 min), even with -g, but now takes "forever" to compile. (I waited for more than 20 min, then killed compilation.)
`flang -c 0394_0031.f90` compiles quickly.
`flang -c -g 0394_0031.f90` compiles "forever"
Compiler used:
```
$ flang --version
flang version 20.0.0git (https://github.com/llvm/llvm-project.git 630177ccdde44b0dd8faa13b34002d15c4b0af8d)
Target: x86_64-unknown-linux-gnu
```
It was pointed out to me that this slow-down may be related to https://github.com/llvm/llvm-project/pull/122770
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUU83OozgQfBpzsUBN8xcOHLIZIc39u48MbsATY2f9k0zefgUhuztzmNEnIZm21NWuqi7hvZoNUceqv1j1JRExLNZ1FGcyRDe_BHqaZLDy2X2QD6w48yWEm2fFmWHPsJ9VWOKQjXZl2E_xuwo-MuxHu96UJpcG8iH1UQVi2A_aDgz7VSjDsO-tC05sf1C05XF8AyjybGqBwZnB-WNRnm8YPHqSPFh-IPO_oxqv-skZnjR5z8MiDEe-btAtwwunOxn-UGHh6bzVQwzc2AcP4kqeM8TJOrqTY4j_w802wK_8IVQgySfr-GodHejwgr_wsJDhV6U1yaNRBGVNto3e381qmLQwM09H_jOtGt6j_JtD9ktDOv-m56eHv4ZdDrF3jTZndrjjgzPDkh_Y6Z2cV9YwOL9ujpojZJDBrMJG_zcOa31_H-nN2e80hmzrqgvIm2YcpaSyHEDK0yREXgxFCYAyr8ZyADGd5EugD-Fm2pfpx6n-VpdpNFdjHybVysQf6WzirxTg_DXwh_D8ZpXZnLExbK6tuzWBh21PvLaPVNqH4at48oG4Iy3Ca20-x4lhf4taM-xzxKaBRHaFbItWJNTlTdHUkOctJEuHpxxgbCTVVVGWRSEAK2qwGJtmyKu6SFSHgBXkWABWbQUZSRokQo1teWrb6cRKoFUonW3zM-vmRHkfqcuxhLJNtBhI-z2eiI5mR343EJHhhSFKGuKszGT_vdmN3arqS-K6ndUQZ89K0MoH_9-coIKm7kjhK2R7XFZhntyTnlJHEzkyozIzD88b-T-E5x23JDrdfVrxnbffNd-p3zv8JwAA___V7XYX">