<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 hangs with -backend-option -vectorize-loops"
   href="http://llvm.org/bugs/show_bug.cgi?id=15871">15871</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang hangs with -backend-option -vectorize-loops
          </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>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>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>choller@mozilla.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu, rafael.espindola@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I've hit this when building mozilla-central and reduced the original C file
from 30k lines down to this small (but nonsense) example:


enum __rlimit_resource {
        RUSAGE_SELF = 0
};
struct event {
        struct event_base *ev_base;
};
int min_heap_elem_greater(
                        //struct event *a, 
                        struct event *b
                        ) {}
struct eventop {
        X(event_io_map, event_map_entry);
        struct event_base {
                const struct eventop *evsel;
        };
};



When compiling this with the following command line:

llvm/build/bin/clang-3.3 -cc1 -emit-obj -backend-option -vectorize-loops test.c

my clang hangs and seems to infinitely loop. Removing the backend-option
vectorize-loops seems to resolve the problem. Tested on LLVM r180778.</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>