<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 --- - Assertion `getInductionVars()->size() && "No induction variables"' failed."
   href="http://llvm.org/bugs/show_bug.cgi?id=15926">15926</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion `getInductionVars()->size() && "No induction variables"' failed.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kcc@google.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>test case by csmith/creduce

% clang -m32 -O3 z.c -c 
# or: 
# clang -cc1 -triple i386-unknown-linux-gnu -emit-obj -O3 -backend-option
-vectorize-loops -o z.o -x c z.c

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:2525: bool <anonymous
namespace>::LoopVectorizationLegality::canVectorizeInstrs(): Assertion
`getInductionVars()->size() && "No induction variables"' failed.

3.    Running pass 'CallGraph Pass Manager' on module 'z.c'.
4.    Running pass 'Loop Pass Manager' on function '@fn1'
5.    Running pass 'Loop Vectorization' on basic block '%for.body'

test case:

long long a;
volatile int x;
void fn1 () {
  for (a = 0; a >= 0; ++a)
    x = 0;
}


This reduced test case is not standard conforming (integer overflow)
but the compiler should not fail in an assertion.</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>