[llvm-commits] Who broke the vectorizer builder?

Duncan Sands baldrick at free.fr
Thu Nov 8 08:30:44 PST 2012


Hi Hal, if this is a case of a vector of pointers requiring the pointer to be a
pointer to a integer or float type only, I have a patch in the works that gets
rid of this restriction.

Ciao, Duncan.

On 08/11/12 16:53, Hal Finkel wrote:
> http://lab.llvm.org:8011/builders/clang-x86_64-darwin10-nt-O3-vectorize/builds/1716/steps/lnt.nightly-test/logs/test.log
>
> A lot of tests now fail to compile:
> Assertion failed: (isValidElementType(ElementType) && "Elements of a VectorType must be a primitive type"), function get, file /Users/buildslave/zorg/buildbot/smooshlab/slave-0.8/clang-x86_64-darwin10-nt-O3-vectorize/llvm.src/lib/VMCore/Type.cpp, line 708.
> 0  clang             0x00000001018ca802 llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) + 482
> 1  clang             0x00000001018cad86 llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) + 1894
> 2  libSystem.B.dylib 0x00007fff887bb67a _sigtramp + 26
> 3  libSystem.B.dylib 0x000000010260b340 _sigtramp + 2045050080
> 4  clang             0x0000000100052a36 std::vector<char, std::allocator<char> >::_M_fill_insert(__gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > >, unsigned long, char const&) + 1958
> 5  clang             0x0000000100052a88 std::vector<char, std::allocator<char> >::_M_fill_insert(__gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > >, unsigned long, char const&) + 2040
> 6  clang             0x0000000100042619 std::vector<llvm::PassInfo const*, std::allocator<llvm::PassInfo const*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassInfo const**, std::vector<llvm::PassInfo const*, std::allocator<llvm::PassInfo const*> > >, llvm::PassInfo const* const&) + 3833
> 7  clang             0x0000000100d49743 std::vector<llvm::Constant*, std::allocator<llvm::Constant*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::Constant**, std::vector<llvm::Constant*, std::allocator<llvm::Constant*> > >, llvm::Constant* const&) + 2499
> 8  clang             0x0000000100d4c34b std::vector<llvm::Constant*, std::allocator<llvm::Constant*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::Constant**, std::vector<llvm::Constant*, std::allocator<llvm::Constant*> > >, llvm::Constant* const&) + 13771
> 9  clang             0x0000000100d54701 std::vector<llvm::Constant*, std::allocator<llvm::Constant*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::Constant**, std::vector<llvm::Constant*, std::allocator<llvm::Constant*> > >, llvm::Constant* const&) + 47489
> 10 clang             0x0000000100d55c5d std::vector<llvm::Constant*, std::allocator<llvm::Constant*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::Constant**, std::vector<llvm::Constant*, std::allocator<llvm::Constant*> > >, llvm::Constant* const&) + 52957
> 11 clang             0x0000000100d4911c std::vector<llvm::Constant*, std::allocator<llvm::Constant*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::Constant**, std::vector<llvm::Constant*, std::allocator<llvm::Constant*> > >, llvm::Constant* const&) + 924
> 12 clang             0x0000000101876215 llvm::SmallVectorTemplateBase<llvm::cl::parser<llvm::PassInfo const*>::OptionInfo, false>::grow(unsigned long) + 3861
> 13 clang             0x0000000101876aa0 llvm::SmallVectorTemplateBase<llvm::cl::parser<llvm::PassInfo const*>::OptionInfo, false>::grow(unsigned long) + 6048
> 14 clang             0x000000010187c4cc llvm::SmallVectorTemplateBase<llvm::cl::parser<llvm::PassInfo const*>::OptionInfo, false>::grow(unsigned long) + 29132
> 15 clang             0x0000000101667fc8 std::vector<std::pair<llvm::WeakVH, llvm::CallGraphNode*>, std::allocator<std::pair<llvm::WeakVH, llvm::CallGraphNode*> > >::_M_insert_aux(__gnu_cxx::__normal_iterator<std::pair<llvm::WeakVH, llvm::CallGraphNode*>*, std::vector<std::pair<llvm::WeakVH, llvm::CallGraphNode*>, std::allocator<std::pair<llvm::WeakVH, llvm::CallGraphNode*> > > >, std::pair<llvm::WeakVH, llvm::CallGraphNode*> const&) + 4840
> 16 clang             0x000000010187bfbb llvm::SmallVectorTemplateBase<llvm::cl::parser<llvm::PassInfo const*>::OptionInfo, false>::grow(unsigned long) + 27835
> 17 clang             0x000000010187d290 llvm::SmallVectorTemplateBase<llvm::cl::parser<llvm::PassInfo const*>::OptionInfo, false>::grow(unsigned long) + 32656
> 18 clang             0x000000010187d31d llvm::SmallVectorTemplateBase<llvm::cl::parser<llvm::PassInfo const*>::OptionInfo, false>::grow(unsigned long) + 32797
> 19 clang             0x00000001001ecaca std::vector<clang::serialization::ModuleFile*, std::allocator<clang::serialization::ModuleFile*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<clang::serialization::ModuleFile**, std::vector<clang::serialization::ModuleFile*, std::allocator<clang::serialization::ModuleFile*> > >, clang::serialization::ModuleFile* const&) + 8730
> 20 clang             0x00000001002ebb93 std::vector<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int> > >::operator=(std::vector<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int> > > const&) + 1075
> 21 clang             0x0000000100329a77 bool clang::hasSpecificAttr<clang::X86ForceAlignArgPointerAttr, llvm::SmallVector<clang::Attr*, 2u> >(llvm::SmallVector<clang::Attr*, 2u> const&) + 1159
> 22 clang             0x00000001000b23b0 llvm::SmallVectorTemplateBase<clang::CharSourceRange, false>::grow(unsigned long) + 2656
> 23 clang             0x00000001002ea17a std::vector<clang::CXXRecordDecl const*, std::allocator<clang::CXXRecordDecl const*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<clang::CXXRecordDecl const**, std::vector<clang::CXXRecordDecl const*, std::allocator<clang::CXXRecordDecl const*> > >, clang::CXXRecordDecl const* const&) + 2170
> 24 clang             0x00000001000b2880 llvm::SmallVectorTemplateBase<clang::CharSourceRange, false>::grow(unsigned long) + 3888
> 25 clang             0x0000000100095dd0 std::vector<clang::CompilerInstance*, std::allocator<clang::CompilerInstance*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<clang::CompilerInstance**, std::vector<clang::CompilerInstance*, std::allocator<clang::CompilerInstance*> > >, clang::CompilerInstance* const&) + 9072
> 26 clang             0x000000010005cd86 std::vector<char const*, std::allocator<char const*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<char const**, std::vector<char const*, std::allocator<char const*> > >, char const* const&) + 3990
> 27 clang             0x0000000100055f2e AnnotateIgnoreWritesEnd + 7230
> 28 clang             0x0000000100059626 std::vector<llvm::SourceMgr::SrcBuffer, std::allocator<llvm::SourceMgr::SrcBuffer> >::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::SourceMgr::SrcBuffer*, std::vector<llvm::SourceMgr::SrcBuffer, std::allocator<llvm::SourceMgr::SrcBuffer> > >, llvm::SourceMgr::SrcBuffer const&) + 2326
> 29 clang             0x0000000100055c7c AnnotateIgnoreWritesEnd + 6540
> 30 clang             0x0000000000000047 AnnotateIgnoreWritesEnd + 4294622551
>
>   -Hal
>




More information about the llvm-commits mailing list