[LLVMbugs] [Bug 14692] New: assert in InnerLoopVectorizer::createEmptyLoop

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Dec 21 13:55:04 PST 2012


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

             Bug #: 14692
           Summary: assert in InnerLoopVectorizer::createEmptyLoop
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: ahatanak at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9752
  --> http://llvm.org/bugs/attachment.cgi?id=9752
test program

This is the command:

$ clang -fno-strict-aliasing -target mips64el-unknown-linux -O3
-fomit-frame-pointer -S test1.c -o test1.ll -emit-llvm


It asserts when LoopVectorize.cpp:506 is executed. It looks like it is
complaining because it is trying to zero-extend an i64 (type Count->getType()
returns i64) to an i32 (IdxTy).

if (Count->getType() != IdxTy) {
    // The exit count can be of pointer type. Convert it to the correct
    // integer type.
    if (ExitCount->getType()->isPointerTy())
      Count = CastInst::CreatePointerCast(Count, IdxTy, "ptrcnt.to.int", Loc);
    else
      Count = CastInst::CreateZExtOrBitCast(Count, IdxTy, "zext.cnt", Loc); //
<= this line
  }

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list