Akira Hatanaka
2012-Dec-21 21:35 UTC
[LLVMdev] assert in InnerLoopVectorizer::createEmptyLoop
I am seeing an assert when I run this command:
$ clang -fno-strict-aliasing -target mips64el-unknown-linux -O3
-fomit-frame-pointer -S oggenc.i -o oggenc.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
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20121221/9ab19e8a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oggenc.i.gz
Type: application/x-gzip
Size: 248754 bytes
Desc: not available
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20121221/9ab19e8a/attachment.bin>
Seemingly Similar Threads
- [LLVMdev] assert in InnerLoopVectorizer::createEmptyLoop
- [LLVMdev] assert in InnerLoopVectorizer::createEmptyLoop
- [LLVMdev] cast instruction
- [LLVMdev] Instrumenting Various Types Using Single Instrumentation Function
- [LLVMdev] How to create arguments CallInst
