Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault on running SLPVectorizer pass #71

Closed
aleasims opened this issue Aug 21, 2023 · 0 comments · Fixed by #73
Closed

Segfault on running SLPVectorizer pass #71

aleasims opened this issue Aug 21, 2023 · 0 comments · Fixed by #73
Assignees
Labels
bug Something isn't working

Comments

@aleasims
Copy link
Contributor

Backtrace:

#0  llvm::Type::getTypeID (this=0x0) at /root/proj/zkllvm/libs/circifier/llvm/include/llvm/IR/Type.h:141
#1  0x00007fffe58935d5 in llvm::Type::isIntegerTy (this=0x0) at /root/proj/zkllvm/libs/circifier/llvm/include/llvm/IR/Type.h:226
#2  0x00007fffe5c0eb75 in llvm::VectorType::isValidElementType (ElemTy=0x0) at /root/proj/zkllvm/libs/circifier/llvm/lib/IR/Type.cpp:705
#3  0x00007fffe5c0ea55 in llvm::FixedVectorType::get (ElementType=0x0, NumElts=4) at /root/proj/zkllvm/libs/circifier/llvm/lib/IR/Type.cpp:716
#4  0x00007fffe5c0e867 in llvm::VectorType::get (ElementType=0x0, EC=...) at /root/proj/zkllvm/libs/circifier/llvm/lib/IR/Type.cpp:701
#5  0x00007fffe98764b4 in llvm::EVT::getExtendedVectorVT (Context=..., VT=..., EC=...) at /root/proj/zkllvm/libs/circifier/llvm/lib/CodeGen/ValueTypes.cpp:55
#6  0x00007fffee44456e in llvm::EVT::getVectorVT (Context=..., VT=..., EC=...) at /root/proj/zkllvm/libs/circifier/llvm/include/llvm/CodeGen/ValueTypes.h:87
#7  0x00007fffee44433f in llvm::TargetLoweringBase::getValueType (this=0x7fffddb52c28, DL=..., Ty=0x7fffddbe2bd0, AllowUnknown=false) at /root/proj/zkllvm/libs/circifier/llvm/include/llvm/CodeGen/TargetLowering.h:1507
#8  0x00007fffee4602ee in llvm::BasicTTIImplBase<llvm::AssignerTTIImpl>::getTypeLegalizationCost (this=0x7fffcc0405a8, Ty=0x7fffddbe2bd0) at /root/proj/zkllvm/libs/circifier/llvm/include/llvm/CodeGen/BasicTTIImpl.h:815
#9  0x00007fffee471b51 in llvm::BasicTTIImplBase<llvm::AssignerTTIImpl>::getNumberOfParts (this=0x7fffcc0405a8, Tp=0x7fffddbe2bd0) at /root/proj/zkllvm/libs/circifier/llvm/include/llvm/CodeGen/BasicTTIImpl.h:2209
#10 0x00007fffee44d271 in llvm::TargetTransformInfo::Model<llvm::AssignerTTIImpl>::getNumberOfParts (this=0x7fffcc0405a0, Tp=0x7fffddbe2bd0) at /root/proj/zkllvm/libs/circifier/llvm/include/llvm/Analysis/TargetTransformInfo.h:2462
#11 0x00007fffe72f03c9 in llvm::TargetTransformInfo::getNumberOfParts (this=0x7fffcc03fab8, Tp=0x7fffddbe2bd0) at /root/proj/zkllvm/libs/circifier/llvm/lib/Analysis/TargetTransformInfo.cpp:993
#12 0x00007fffeac97c50 in llvm::SLPVectorizerPass::tryToVectorizeList (this=0x7fffcc009ad8, VL=..., R=..., LimitForRegisterSize=false) at /root/proj/zkllvm/libs/circifier/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:11690
#13 0x00007fffeac97834 in llvm::SLPVectorizerPass::tryToVectorizePair (this=0x7fffcc009ad8, A=0x7fffcc033250, B=0x7fffcc033250, R=...) at /root/proj/zkllvm/libs/circifier/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:11627
#14 0x00007fffeac988e6 in llvm::SLPVectorizerPass::tryToVectorize (this=0x7fffcc009ad8, I=0x7fffddbd91c0, R=...) at /root/proj/zkllvm/libs/circifier/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:11809
#15 0x00007fffeac9921f in llvm::SLPVectorizerPass::tryToVectorize (this=0x7fffcc009ad8, Insts=..., R=...) at /root/proj/zkllvm/libs/circifier/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:13263
#16 0x00007fffeac9913f in llvm::SLPVectorizerPass::vectorizeRootInstruction (this=0x7fffcc009ad8, P=0x0, V=0x7fffddbd91c0, BB=0x7fffddaa5d30, R=..., TTI=0x7fffcc03fab8) at /root/proj/zkllvm/libs/circifier/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:13254
#17 0x00007fffeac95bda in llvm::SLPVectorizerPass::vectorizeChainsInBlock (this=0x7fffcc009ad8, BB=0x7fffddaa5d30, R=...) at /root/proj/zkllvm/libs/circifier/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:13751
#18 0x00007fffeac94956 in llvm::SLPVectorizerPass::runImpl (this=0x7fffcc009ad8, F=..., SE_=0x7fffcc0411d8, TTI_=0x7fffcc03fab8, TLI_=0x7fffcc0400c8, AA_=0x7fffcc0824a8, LI_=0x7fffcc03ad88, DT_=0x7fffcc015d28, AC_=0x7fffcc040198, DB_=0x7fffcc040958, ORE_=0x7fffcc040478)
    at /root/proj/zkllvm/libs/circifier/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:11379
#19 0x00007fffeac944af in llvm::SLPVectorizerPass::run (this=0x7fffcc009ad8, F=..., AM=...) at /root/proj/zkllvm/libs/circifier/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:11310
#20 0x00007fffebdbbf34 in llvm::detail::PassModel<llvm::Function, llvm::SLPVectorizerPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (this=0x7fffcc009ad0, IR=..., AM=...)
    at /root/proj/zkllvm/libs/circifier/llvm/include/llvm/IR/PassManagerInternal.h:89
#21 0x00007fffe5bb26e7 in llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (this=0x7fffcc00b5a8, IR=..., AM=...) at /root/proj/zkllvm/libs/circifier/llvm/include/llvm/IR/PassManager.h:517
#22 0x00007fffefb9b164 in llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (this=0x7fffcc00b5a0, IR=..., AM=...)
    at /root/proj/zkllvm/libs/circifier/llvm/include/llvm/IR/PassManagerInternal.h:89
#23 0x00007fffe5bb1315 in llvm::ModuleToFunctionPassAdaptor::run (this=0x7fffcc00b5d8, M=..., AM=...) at /root/proj/zkllvm/libs/circifier/llvm/lib/IR/PassManager.cpp:124
#24 0x00007fffefb9ab54 in llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (this=0x7fffcc00b5d0, IR=..., AM=...)
    at /root/proj/zkllvm/libs/circifier/llvm/include/llvm/IR/PassManagerInternal.h:89
#25 0x00007fffe5bb17b7 in llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (this=0x7fffd783e660, IR=..., AM=...) at /root/proj/zkllvm/libs/circifier/llvm/include/llvm/IR/PassManager.h:517
#26 0x00007ffff33c9a8b in LLVMRustOptimize () from /root/proj/zkllvm/build/libs/rslang/build/x86_64-unknown-linux-gnu/stage1/bin/../lib/librustc_driver-54abaa6953445c76.so
...
@aleasims aleasims added the bug Something isn't working label Aug 21, 2023
@aleasims aleasims self-assigned this Aug 21, 2023
@aleasims aleasims linked a pull request Aug 22, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

1 participant