[polly][vectorizer] do not emit bitcast i32** to <1 x i32*>*

Sebastian Pop spop at codeaurora.org
Mon Oct 7 07:27:47 PDT 2013


Hi,

I would like to commit a patch from Zino solving several ICEs when compiling the
nightly testsuite with polly's vector backend: -mllvm -polly-vectorizer=polly
Tested on the nightly.

The ICE looks like this:
lib/IR/Instructions.cpp:2929: llvm::BitCastInst::BitCastInst(llvm::Value *, llvm::Type *, const llvm::Twine &, llvm::Instruction *): Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"' failed.

The ICE appears very often during the compilation of the nightly testsuite (with CPU2000 and CPU2006):
$ cat llvm-master-3706eda-clang-master-d815b3a-polly-master-b99acd7/runme.testsuite.2013_09_24_16_51_27.log | grep "Illegal BitCast" | wc -l
34

The attached patch fixes all these ICEs.  Ok to commit?

Also attached are two patches that make the testsuite pass with ISL codegen.
Ok to commit?

Thanks,
Sebastian
-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-do-not-emit-bitcast-i32-to-1-x-i32.patch
Type: text/x-diff
Size: 9923 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131007/d30dabf2/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-do-not-use-polly-cloog.patch
Type: text/x-diff
Size: 700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131007/d30dabf2/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-use-polly-codegen-isl-in-tests-under-test-Isl.patch
Type: text/x-diff
Size: 738 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131007/d30dabf2/attachment-0002.patch>


More information about the llvm-commits mailing list