Issue 146341
Summary [BUG][AArch64] clang frontend command failed with exit code 136
Labels clang
Assignees
Reporter loadstore
    Issue encountered when compiling Spec2006 403.gcc with -march=armv9.4 or later (works fine for -march=armv9.3 or before). Stack traces are:
Stack dump:
 0.  Program arguments: /scratch-1/resource/llvm-toolchain/install_main_release/bin/clang -c -o c-typeck.o -DSPEC_CPU -DNDEBUG -I. -O3 -march=armv9.6-a -fno-strict-aliasing -target aarch64-none-linux-    gnu --sysroot=/scratch-1/resource/arm-gnu-toolchain-12.2.rel1-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc --gcc-toolchain=/scratch-1/resource/arm-gnu-toolchain-12.2.rel1-x86_64-aarch64- none-linux-gnu -DSPEC_CPU_LP64 c-typeck.c
 1.  <eof> parser at end of file
 2.  Optimizer
 3.  Running pass "function<eager-inv>(float2int,lower-constant-intrinsics,chr,loop(loop-rotate<header-duplication;no-prepare-for-lto>,loop-deletion),loop-distribute,inject-tli-mappings,loop- vectorize<no-interleave-forced-only;no-vectorize-forced-only;>,infer-alignment,loop-load-elim,instcombine<max-iterations=1;no-verify-fixpoint>,simplifycfg<bonus-inst-threshold=1;forward-switch-cond; switch-range-to-icmp;switch-to-lookup;no-keep-loops;hoist-common-insts;no-hoist-loads-stores-with-cond-faulting;sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,slp- vectorizer,vector-combine,instcombine<max-iterations=1;no-verify-fixpoint>,loop-unroll<O3>,transform-warning,sroa<preserve-cfg>,infer-alignment,instcombine<max-iterations=1;no-verify-fixpoint>,loop- mssa(licm<allowspeculation>),alignment-from-assumptions,loop-sink,instsimplify,div-rem-pairs,tailcallelim,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to- lookup;keep-loops;no-hoist-common-insts;hoist-loads-stores-with-cond-faulting;no-sink-common-insts;speculate-blocks;simplify-cond-branch;speculate-unpredictables>)" on module "c-typeck.c"
 4.  Running pass "slp-vectorizer" on function "digest_init"
  #0 0x00007f070f1eab17 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/libLLVMSupport.so.21.0git+0x186b17)
 #1 0x00007f070f1e88d5 llvm::sys::RunSignalHandlers() (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/libLLVMSupport.so.21.0git+0x1848d5)
 #2 0x00007f070f1e9fed llvm::sys::CleanupOnSignal(unsigned long) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/libLLVMSupport.so.21.0git+0x185fed)
 #3 0x00007f070f126b1f CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
  #4 0x00007f071293f420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420)
  #5 0x00007f0712decc60 llvm::AArch64TTIImpl::getShuffleCost(llvm::TargetTransformInfo::ShuffleKind, llvm::VectorType*, llvm::VectorType*, llvm::ArrayRef<int>, llvm::TargetTransformInfo::TargetCostKind,  int, llvm::VectorType*, llvm::ArrayRef<llvm::Value const*>, llvm::Instruction const*) const (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/libLLVMAArch64CodeGen.so.21.0git+0x2f2c60)
 #6 0x00007f07111f5079 llvm::slpvectorizer::BoUpSLP::ShuffleCostEstimator::ShuffleCostBuilder::createShuffleVector(llvm::Value*, llvm::ArrayRef<int>) const (/scratch-1/resource/llvm-toolchain/ install_main_release/bin/../lib/libLLVMVectorize.so.21.0git+0x1c0079)
  #7 0x00007f07111f39b3 llvm::slpvectorizer::BoUpSLP::ShuffleCostEstimator::createShuffle(llvm::PointerUnion<llvm::Value*, llvm::slpvectorizer::BoUpSLP::TreeEntry const*> const&, llvm:: PointerUnion<llvm::Value*, llvm::slpvectorizer::BoUpSLP::TreeEntry const*> const&, llvm::ArrayRef<int>) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/libLLVMVectorize.so.21.0git+ 0x1be9b3)
  #8 0x00007f07111ec5d4 llvm::slpvectorizer::BoUpSLP::ShuffleCostEstimator::finalize(llvm::ArrayRef<int>, llvm::ArrayRef<std::pair<llvm::slpvectorizer::BoUpSLP::TreeEntry const*, unsigned int>>, llvm::   ArrayRef<int>, unsigned int, llvm::function_ref<void (llvm::Value*&, llvm::SmallVectorImpl<int>&, llvm::function_ref<llvm::Value* (llvm::Value*, llvm::Value*, llvm::ArrayRef<int>)>)>) (/scratch-1/ resource/llvm-toolchain/install_main_release/bin/../lib/libLLVMVectorize.so.21.0git+0x1b75d4)
 #9 0x00007f071115794f llvm::InstructionCost llvm::slpvectorizer::BoUpSLP::processBuildVector<llvm::slpvectorizer::BoUpSLP::ShuffleCostEstimator, llvm::InstructionCost, llvm::TargetTransformInfo, llvm:: ArrayRef<llvm::Value*>, llvm::slpvectorizer::BoUpSLP, llvm::SmallPtrSetImpl<llvm::Value*>>(llvm::slpvectorizer::BoUpSLP::TreeEntry const*, llvm::Type*, llvm::TargetTransformInfo&, llvm::ArrayRef<llvm:: Value*>&, llvm::slpvectorizer::BoUpSLP&, llvm::SmallPtrSetImpl<llvm::Value*>&) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/libLLVMVectorize.so.21.0git+0x12294f)
 #10 0x00007f0711150f2e llvm::slpvectorizer::BoUpSLP::getEntryCost(llvm::slpvectorizer::BoUpSLP::TreeEntry const*, llvm::ArrayRef<llvm::Value*>, llvm::SmallPtrSetImpl<llvm::Value*>&) (/scratch-1/ resource/llvm-toolchain/install_main_release/bin/../lib/libLLVMVectorize.so.21.0git+0x11bf2e)
 #11 0x00007f071115df09 llvm::slpvectorizer::BoUpSLP::getTreeCost(llvm::ArrayRef<llvm::Value*>, llvm::InstructionCost) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/ libLLVMVectorize.so.21.0git+0x128f09)
 #12 0x00007f07111cc22b (anonymous namespace)::HorizontalReduction::tryToReduce(llvm::slpvectorizer::BoUpSLP&, llvm::DataLayout const&, llvm::TargetTransformInfo*, llvm::TargetLibraryInfo const&, llvm::  AssumptionCache*) SLPVectorizer.cpp:0:0
 #13 0x00007f071119ab89 llvm::SLPVectorizerPass::vectorizeHorReduction(llvm::PHINode*, llvm::Instruction*, llvm::BasicBlock*, llvm::slpvectorizer::BoUpSLP&, llvm::SmallVectorImpl<llvm::WeakTrackingVH>&) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/libLLVMVectorize.so.21.0git+0x165b89)
 #14 0x00007f071119af47 llvm::SLPVectorizerPass::vectorizeRootInstruction(llvm::PHINode*, llvm::Instruction*, llvm::BasicBlock*, llvm::slpvectorizer::BoUpSLP&) (/scratch-1/resource/llvm-toolchain/ install_main_release/bin/../lib/libLLVMVectorize.so.21.0git+0x165f47)
 #15 0x00007f0711190a89 llvm::SLPVectorizerPass::vectorizeChainsInBlock(llvm::BasicBlock*, llvm::slpvectorizer::BoUpSLP&) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/ libLLVMVectorize.so.21.0git+0x15ba89)
 #16 0x00007f071118df18 llvm::SLPVectorizerPass::runImpl(llvm::Function&, llvm::ScalarEvolution*, llvm::TargetTransformInfo*, llvm::TargetLibraryInfo*, llvm::AAResults*, llvm::LoopInfo*, llvm::           DominatorTree*, llvm::AssumptionCache*, llvm::DemandedBits*, llvm::OptimizationRemarkEmitter*) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/libLLVMVectorize.so.21.0git+0x158f18)
 #17 0x00007f071118d801 llvm::SLPVectorizerPass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/libLLVMVectorize.so.21. 0git+0x158801)
 #18 0x00007f070e095eed llvm::detail::PassModel<llvm::Function, llvm::SLPVectorizerPass, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/scratch-1/ resource/llvm-toolchain/install_main_release/bin/../lib/../lib/libLLVMPasses.so.21.0git+0x11ceed)
 #19 0x00007f070f567e4d llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/scratch-1/resource/llvm-toolchain/ install_main_release/bin/../lib/libLLVMCore.so.21.0git+0x25ce4d)
 #20 0x00007f071375722d llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/libLLVMX86CodeGen.so.21.0git+0xa422d)
 #21 0x00007f070f56c190 llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/libLLVMCore.so.21. 0git+0x261190)
 #22 0x00007f07137570fd llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/scratch- 1/resource/llvm-toolchain/install_main_release/bin/../lib/libLLVMX86CodeGen.so.21.0git+0xa40fd)
#23 0x00007f070f566aed llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/scratch-1/resource/llvm-toolchain/ install_main_release/bin/../lib/libLLVMCore.so.21.0git+0x25baed)
 #24 0x00007f0711fd45e7 (anonymous namespace)::EmitAssemblyHelper::RunOptimizationPipeline(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>&, std::unique_ptr<llvm::ToolOutputFile, std::default_delete<llvm::ToolOutputFile>>&, clang::BackendConsumer*) BackendUtil.cpp:0:0
 #25 0x00007f0711fcb55e clang::emitBackendOutput(clang::CompilerInstance&, clang::CodeGenOptions&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/libclangCodeGen.so. 21.0git+0x11355e)
 #26 0x00007f07122e5e90 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/libclangCodeGen.so.21.0git+0x42de90)
 #27 0x00007f070cb8a586 clang::ParseAST(clang::Sema&, bool, bool) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/../lib/libclangParse.so.21.0git+0x3f586)
 #28 0x00007f0710f6316d clang::FrontendAction::Execute() (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/libclangFrontend.so.21.0git+0x12e16d)
 #29 0x00007f0710ec73a6 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/libclangFrontend.so.21.0git+0x923a6)
 #30 0x00007f071292649e clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/libclangFrontendTool.so.21.0git+0x449e)
 #31 0x000000000040ffc9 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/clang+0x40ffc9)
 #32 0x000000000040cec5 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
 #33 0x00007f0710b8aaf9 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::             char_traits<char>, std::allocator<char>>*, bool*) const::$_1>(long) Job.cpp:0:0
 #34 0x00007f070f126863 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/libLLVMSupport.so.21.0git+0xc2863)
 #35 0x00007f0710b8a464 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (/ scratch-1/resource/llvm-toolchain/install_main_release/bin/../lib/libclangDriver.so.21.0git+0xba464)
 #36 0x00007f0710b44f94 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/scratch-1/resource/llvm-toolchain/install_main_release/ bin/../lib/libclangDriver.so.21.0git+0x74f94)
 #37 0x00007f0710b450ce clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/scratch-1/resource/ llvm-toolchain/install_main_release/bin/../lib/libclangDriver.so.21.0git+0x750ce)
 #38 0x00007f0710b679d1 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/scratch-1/resource/llvm-toolchain/ install_main_release/bin/../lib/libclangDriver.so.21.0git+0x979d1)
 #39 0x000000000040c2ee clang_main(int, char**, llvm::ToolContext const&) (/scratch-1/resource/llvm-toolchain/install_main_release/bin/clang+0x40c2ee)
 #40 0x000000000041ab87 main (/scratch-1/resource/llvm-toolchain/install_main_release/bin/clang+0x41ab87)
 #41 0x00007f070eb48083 __libc_start_main /build/glibc-B3wQXB/glibc-2.31/csu/../csu/libc-start.c:342:3
 #42 0x000000000040aade _start (/scratch-1/resource/llvm-toolchain/install_main_release/bin/clang+0x40aade)
 clang: error: clang frontend command failed with exit code 136 (use -v to see invocation)
 clang version 21.0.0git (https://github.com/llvm/llvm-project.git 33c8d5c686ea923d0905d3f60cf2db6e6ec868e1)
 Target: aarch64-none-linux-gnu
 Thread model: posix
 InstalledDir: /scratch-1/resource/llvm-toolchain/install_main_release/bin
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to