<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - clang is unbearably slow to compile large function with computed goto"
   href="http://llvm.org/bugs/show_bug.cgi?id=18161">18161</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang is unbearably slow to compile large function with computed goto
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>notasas@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=11681" name="attach_11681" title="self-contained reproducer">attachment 11681</a> <a href="attachment.cgi?id=11681&action=edit" title="self-contained reproducer">[details]</a></span>
self-contained reproducer

Compiling attached file with various compilers:

$ time clang+llvm-3.3-amd64/bin/clang fametest.c -c -o fametest.o -O
real    187m31.733s
user    186m46.396s
sys    0m6.212s

$ time clang+llvm-3.3-amd64/bin/clang fametest.c -c -o fametest.o -O2
real    189m4.333s
user    188m23.232s
sys    0m2.972s

$ time clang+llvm-3.3-amd64/bin/clang fametest.c -c -o fametest.o -O0
real    0m0.856s
user    0m0.772s
sys    0m0.056s

trunk 196510:

$ Debug+Asserts/bin/clang fametest.c -c -o fametest2.o -O
<did not finish in 24h>

time ./Release/bin/clang fametest.c -c -o fametest_clangtrunk_rel.o -O
real    428m39.409s
user    427m2.568s
sys    0m11.472s

$ gcc -v
Target: x86_64-linux-gnu
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

$ time gcc fametest.c -c -o fametest.o -O2
real    0m30.367s
user    0m29.208s
sys    0m0.936s

$ arm-open2x-linux-gcc -v
Target: arm-open2x-linux
gcc version 4.1.1

$ time arm-open2x-linux-gcc fametest.c -c -o fametest.o -O2
real    0m25.722s
user    0m22.552s
sys    0m2.760s</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>