<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 --- - Without late-vectorize, clang can run forever and uses ridiculous amounts of memory"
   href="http://llvm.org/bugs/show_bug.cgi?id=17525">17525</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Without late-vectorize, clang can run forever and uses ridiculous amounts of memory
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dimitry@andric.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=11353" name="attach_11353" title="Testcase for ns_core memory exhaustion problem">attachment 11353</a> <a href="attachment.cgi?id=11353&action=edit" title="Testcase for ns_core memory exhaustion problem">[details]</a></span>
Testcase for ns_core memory exhaustion problem

I recently received a sample source file from a FreeBSD user, who observed
clang running forever, until all memory was exhausted and the process was
killed, while compiling a Mozilla WebRTC source file.  This occurred with clang
3.3 release on the i386 arch, and *only* when compiling with -march=pentium3.

With more recent trunk versions I could not reproduce the problem, so I did
some bisecting, and the revision that 'fixed' it turned out to be r189858
("Enable late-vectorization by default").  However, this just changes the
default setting for late-vectorize, and when you turn it off, the problem can
still be reproduced with trunk r192062.

I reduced the sample to the attached testcase, which should be compiled with
the following flags:

clang -O3 -m32 -march=pentium3 -mllvm -late-vectorize=false -c

This makes clang run forever and eats up all RAM, until it crashes.  Other
-march= settings do not exhibit this problem, e.g. pentium2, pentium4, core2,
etc all compile it quickly as expected, and use very little RAM.</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>