[LLVMbugs] [Bug 15926] New: Assertion `getInductionVars()->size() && "No induction variables"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 7 04:51:00 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=15926

            Bug ID: 15926
           Summary: Assertion `getInductionVars()->size() && "No induction
                    variables"' failed.
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: kcc at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130507/70b2aff1/attachment.html>


More information about the llvm-bugs mailing list