[llvm] [VPlan] Refine hasEarlyExit check. (PR #207791)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 6 13:46:16 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `llvm` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/28477
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --cmake-file=AMDGPULibcBot.cmake' (failure)
...
[242/2728] Building CXX object libc/src/stdio/gpu/CMakeFiles/libc.src.stdio.gpu.getchar.dir/getchar.cpp.o
[243/2728] Building CXX object libc/src/stdio/gpu/CMakeFiles/libc.src.stdio.gpu.fgetc.dir/fgetc.cpp.o
[244/2728] Building CXX object libc/src/stdio/gpu/CMakeFiles/libc.src.stdio.gpu.putchar.dir/putchar.cpp.o
[245/2728] Building CXX object libc/src/stdio/gpu/CMakeFiles/libc.src.stdio.gpu.fgets.dir/fgets.cpp.o
[246/2728] Building CXX object libc/src/stdio/gpu/CMakeFiles/libc.src.stdio.gpu.remove.dir/remove.cpp.o
[247/2728] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.fmul.dir/fmul.cpp.o
[248/2728] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.nanf.dir/nanf.cpp.o
[249/2728] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.nanf16.dir/nanf16.cpp.o
[250/2728] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.nan.dir/nan.cpp.o
[251/2728] Building CXX object libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/error_to_string.cpp.o
FAILED: libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/error_to_string.cpp.o
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/./bin/clang++ --target=amdgcn-amd-amdhsa -DLIBC_NAMESPACE=__llvm_libc_23_0_0_git -D__LIBC_USE_FLOAT16_CONVERSION -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/runtimes/runtimes-amdgcn-amd-amdhsa-bins/libc -isystem /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/include/amdgcn-amd-amdhsa -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -O3 -DNDEBUG -UNDEBUG --target=amdgcn-amd-amdhsa -D__LIBC_USE_BUILTIN_ISNAN -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=element -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=element -DLIBC_ADD_NULL_CHECKS "-DLIBC_MATH=((LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_INTERMEDIATE_COMP_IN_FLOAT | LIBC_MATH_SMALL_TABLES | LIBC_MATH_NO_ERRNO | LIBC_MATH_NO_EXCEPT))" -fno-math-errno -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_SHARED -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_SINGLE -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_TARGET_OS_IS_GPU -fpie -DLIBC_FULL_BUILD -nostdlibinc -ffixed-point -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -Wshadow -DLIBC_COMPILER_HAS_STDC_FENV_ACCESS -nogpulib -fvisibility=hidden -fconvergent-functions -flto -Wno-multi-gpu -Xclang -mcode-object-version=none -MD -MT libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/error_to_string.cpp.o -MF libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/error_to_string.cpp.o.d -o libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/error_to_string.cpp.o -c /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/__support/StringUtil/error_to_string.cpp
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and dumped files.
Stack dump:
0. Program arguments: /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/./bin/clang++ --target=amdgcn-amd-amdhsa -DLIBC_NAMESPACE=__llvm_libc_23_0_0_git -D__LIBC_USE_FLOAT16_CONVERSION -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/runtimes/runtimes-amdgcn-amd-amdhsa-bins/libc -isystem /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/include/amdgcn-amd-amdhsa -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -O3 -DNDEBUG -UNDEBUG --target=amdgcn-amd-amdhsa -D__LIBC_USE_BUILTIN_ISNAN -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=element -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=element -DLIBC_ADD_NULL_CHECKS "-DLIBC_MATH=((LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_INTERMEDIATE_COMP_IN_FLOAT | LIBC_MATH_SMALL_TABLES | LIBC_MATH_NO_ERRNO | LIBC_MATH_NO_EXCEPT))" -fno-math-errno -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_SHARED -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_SINGLE -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_TARGET_OS_IS_GPU -fpie -DLIBC_FULL_BUILD -nostdlibinc -ffixed-point -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -Wshadow -DLIBC_COMPILER_HAS_STDC_FENV_ACCESS -nogpulib -fvisibility=hidden -fconvergent-functions -flto -Wno-multi-gpu -Xclang -mcode-object-version=none -MD -MT libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/error_to_string.cpp.o -MF libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/error_to_string.cpp.o.d -o libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/error_to_string.cpp.o -c /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/__support/StringUtil/error_to_string.cpp
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;prepare-for-lto;check-exit-count>,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-arithmetic;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;aggregate-to-vector>,infer-alignment,instcombine<max-iterations=1;no-verify-fixpoint>,loop-mssa(licm<allowspeculation>),alignment-from-assumptions,infer-address-spaces,loop-sink,instsimplify,div-rem-pairs,mergeicmps,expand-memcmp,tailcallelim,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;switch-to-arithmetic;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 "/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/__support/StringUtil/error_to_string.cpp"
4. Running pass "loop-vectorize<no-interleave-forced-only;no-vectorize-forced-only;>" on function "_ZN22__llvm_libc_23_0_0_git16get_error_stringEi"
#0 0x00007c9f0001f969 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMSupport.so.23.0git+0x21f969)
#1 0x00007c9f0001c6bc llvm::sys::RunSignalHandlers() (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMSupport.so.23.0git+0x21c6bc)
#2 0x00007c9f0001cf12 llvm::sys::CleanupOnSignal(unsigned long) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMSupport.so.23.0git+0x21cf12)
#3 0x00007c9effef2b78 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#4 0x00007c9eff9ed520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#5 0x00007c9f030a3aec llvm::VPlan::hasEarlyExit() const (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMVectorize.so.23.0git+0xa3aec)
#6 0x00007c9f030e63dd llvm::LoopVectorizationPlanner::selectInterleaveCount(llvm::VPlan&, llvm::ElementCount, llvm::InstructionCost) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMVectorize.so.23.0git+0xe63dd)
#7 0x00007c9f030f7e21 llvm::LoopVectorizePass::processLoop(llvm::Loop*) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMVectorize.so.23.0git+0xf7e21)
#8 0x00007c9f030fa511 llvm::LoopVectorizePass::runImpl(llvm::Function&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMVectorize.so.23.0git+0xfa511)
#9 0x00007c9f030fac53 llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMVectorize.so.23.0git+0xfac53)
#10 0x00007c9eff490c16 llvm::detail::PassModel<llvm::Function, llvm::LoopVectorizePass, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/../lib/libLLVMPasses.so.23.0git+0x90c16)
#11 0x00007c9f00502857 llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMCore.so.23.0git+0x302857)
#12 0x00007c9f07c73ac6 llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMAMDGPUCodeGen.so.23.0git+0x473ac6)
#13 0x00007c9f00500824 llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMCore.so.23.0git+0x300824)
#14 0x00007c9f07c741b6 llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMAMDGPUCodeGen.so.23.0git+0x4741b6)
#15 0x00007c9f005013c7 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMCore.so.23.0git+0x3013c7)
#16 0x00007c9f049057fe (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
#17 0x00007c9f04907fa4 (anonymous namespace)::EmitAssemblyHelper::emitAssembly(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) BackendUtil.cpp:0:0
#18 0x00007c9f0490a018 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*) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libclangCodeGen.so.23.0git+0x10a018)
#19 0x00007c9f04d6a65a clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libclangCodeGen.so.23.0git+0x56a65a)
#20 0x00007c9efce6219c clang::ParseAST(clang::Sema&, bool, bool) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/../lib/libclangParse.so.23.0git+0x4419c)
#21 0x00007c9f029452d1 clang::FrontendAction::Execute() (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libclangFrontend.so.23.0git+0x1452d1)
#22 0x00007c9f028c7f95 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libclangFrontend.so.23.0git+0xc7f95)
#23 0x00007c9f077b1ec3 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libclangFrontendTool.so.23.0git+0x5ec3)
#24 0x000058eae1c30ad6 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/./bin/clang+++0x17ad6)
#25 0x000058eae1c2681a ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) driver.cpp:0:0
#26 0x000058eae1c269af int llvm::function_ref<int (llvm::SmallVectorImpl<char const*>&)>::callback_fn<clang_main(int, char**, llvm::ToolContext const&)::'lambda'(llvm::SmallVectorImpl<char const*>&)>(long, llvm::SmallVectorImpl<char const*>&) driver.cpp:0:0
#27 0x00007c9f02cca52d 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::'lambda'()>(long) Job.cpp:0:0
#28 0x00007c9effef2f90 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMSupport.so.23.0git+0xf2f90)
#29 0x00007c9f02ccb3f3 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (.part.0) Job.cpp:0:0
Step 7 (build cmake config) failure: build cmake config (failure)
...
[242/2728] Building CXX object libc/src/stdio/gpu/CMakeFiles/libc.src.stdio.gpu.getchar.dir/getchar.cpp.o
[243/2728] Building CXX object libc/src/stdio/gpu/CMakeFiles/libc.src.stdio.gpu.fgetc.dir/fgetc.cpp.o
[244/2728] Building CXX object libc/src/stdio/gpu/CMakeFiles/libc.src.stdio.gpu.putchar.dir/putchar.cpp.o
[245/2728] Building CXX object libc/src/stdio/gpu/CMakeFiles/libc.src.stdio.gpu.fgets.dir/fgets.cpp.o
[246/2728] Building CXX object libc/src/stdio/gpu/CMakeFiles/libc.src.stdio.gpu.remove.dir/remove.cpp.o
[247/2728] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.fmul.dir/fmul.cpp.o
[248/2728] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.nanf.dir/nanf.cpp.o
[249/2728] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.nanf16.dir/nanf16.cpp.o
[250/2728] Building CXX object libc/src/math/generic/CMakeFiles/libc.src.math.generic.nan.dir/nan.cpp.o
[251/2728] Building CXX object libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/error_to_string.cpp.o
FAILED: libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/error_to_string.cpp.o
/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/./bin/clang++ --target=amdgcn-amd-amdhsa -DLIBC_NAMESPACE=__llvm_libc_23_0_0_git -D__LIBC_USE_FLOAT16_CONVERSION -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/runtimes/runtimes-amdgcn-amd-amdhsa-bins/libc -isystem /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/include/amdgcn-amd-amdhsa -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -O3 -DNDEBUG -UNDEBUG --target=amdgcn-amd-amdhsa -D__LIBC_USE_BUILTIN_ISNAN -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=element -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=element -DLIBC_ADD_NULL_CHECKS "-DLIBC_MATH=((LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_INTERMEDIATE_COMP_IN_FLOAT | LIBC_MATH_SMALL_TABLES | LIBC_MATH_NO_ERRNO | LIBC_MATH_NO_EXCEPT))" -fno-math-errno -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_SHARED -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_SINGLE -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_TARGET_OS_IS_GPU -fpie -DLIBC_FULL_BUILD -nostdlibinc -ffixed-point -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -Wshadow -DLIBC_COMPILER_HAS_STDC_FENV_ACCESS -nogpulib -fvisibility=hidden -fconvergent-functions -flto -Wno-multi-gpu -Xclang -mcode-object-version=none -MD -MT libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/error_to_string.cpp.o -MF libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/error_to_string.cpp.o.d -o libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/error_to_string.cpp.o -c /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/__support/StringUtil/error_to_string.cpp
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and dumped files.
Stack dump:
0. Program arguments: /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/./bin/clang++ --target=amdgcn-amd-amdhsa -DLIBC_NAMESPACE=__llvm_libc_23_0_0_git -D__LIBC_USE_FLOAT16_CONVERSION -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc -I/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/runtimes/runtimes-amdgcn-amd-amdhsa-bins/libc -isystem /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/include/amdgcn-amd-amdhsa -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -O3 -DNDEBUG -UNDEBUG --target=amdgcn-amd-amdhsa -D__LIBC_USE_BUILTIN_ISNAN -DLIBC_QSORT_IMPL=LIBC_QSORT_QUICK_SORT -DLIBC_COPT_STRING_LENGTH_IMPL=element -DLIBC_COPT_FIND_FIRST_CHARACTER_IMPL=element -DLIBC_ADD_NULL_CHECKS "-DLIBC_MATH=((LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_INTERMEDIATE_COMP_IN_FLOAT | LIBC_MATH_SMALL_TABLES | LIBC_MATH_NO_ERRNO | LIBC_MATH_NO_EXCEPT))" -fno-math-errno -DLIBC_ERRNO_MODE=LIBC_ERRNO_MODE_SHARED -DLIBC_THREAD_MODE=LIBC_THREAD_MODE_SINGLE -DLIBC_COPT_TIMEOUT_ENSURE_MONOTONICITY -DLIBC_CONF_WCTYPE_MODE=LIBC_WCTYPE_MODE_ASCII -DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=100 -DLIBC_TARGET_OS_IS_GPU -fpie -DLIBC_FULL_BUILD -nostdlibinc -ffixed-point -fno-exceptions -fno-lax-vector-conversions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -ftrivial-auto-var-init=pattern -Wall -Wextra -Werror -Wconversion -Wno-sign-conversion -Wdeprecated -Wno-c99-extensions -Wno-gnu-imaginary-constant -Wno-pedantic -Wimplicit-fallthrough -Wwrite-strings -Wextra-semi -Wnewline-eof -Wnonportable-system-include-path -Wstrict-prototypes -Wthread-safety -Wglobal-constructors -Wshadow -DLIBC_COMPILER_HAS_STDC_FENV_ACCESS -nogpulib -fvisibility=hidden -fconvergent-functions -flto -Wno-multi-gpu -Xclang -mcode-object-version=none -MD -MT libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/error_to_string.cpp.o -MF libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/error_to_string.cpp.o.d -o libc/src/__support/StringUtil/CMakeFiles/libc.src.__support.StringUtil.error_to_string.dir/error_to_string.cpp.o -c /home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/__support/StringUtil/error_to_string.cpp
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;prepare-for-lto;check-exit-count>,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-arithmetic;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;aggregate-to-vector>,infer-alignment,instcombine<max-iterations=1;no-verify-fixpoint>,loop-mssa(licm<allowspeculation>),alignment-from-assumptions,infer-address-spaces,loop-sink,instsimplify,div-rem-pairs,mergeicmps,expand-memcmp,tailcallelim,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;switch-to-arithmetic;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 "/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm-project/libc/src/__support/StringUtil/error_to_string.cpp"
4. Running pass "loop-vectorize<no-interleave-forced-only;no-vectorize-forced-only;>" on function "_ZN22__llvm_libc_23_0_0_git16get_error_stringEi"
#0 0x00007c9f0001f969 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMSupport.so.23.0git+0x21f969)
#1 0x00007c9f0001c6bc llvm::sys::RunSignalHandlers() (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMSupport.so.23.0git+0x21c6bc)
#2 0x00007c9f0001cf12 llvm::sys::CleanupOnSignal(unsigned long) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMSupport.so.23.0git+0x21cf12)
#3 0x00007c9effef2b78 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
#4 0x00007c9eff9ed520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#5 0x00007c9f030a3aec llvm::VPlan::hasEarlyExit() const (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMVectorize.so.23.0git+0xa3aec)
#6 0x00007c9f030e63dd llvm::LoopVectorizationPlanner::selectInterleaveCount(llvm::VPlan&, llvm::ElementCount, llvm::InstructionCost) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMVectorize.so.23.0git+0xe63dd)
#7 0x00007c9f030f7e21 llvm::LoopVectorizePass::processLoop(llvm::Loop*) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMVectorize.so.23.0git+0xf7e21)
#8 0x00007c9f030fa511 llvm::LoopVectorizePass::runImpl(llvm::Function&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMVectorize.so.23.0git+0xfa511)
#9 0x00007c9f030fac53 llvm::LoopVectorizePass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMVectorize.so.23.0git+0xfac53)
#10 0x00007c9eff490c16 llvm::detail::PassModel<llvm::Function, llvm::LoopVectorizePass, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/../lib/libLLVMPasses.so.23.0git+0x90c16)
#11 0x00007c9f00502857 llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMCore.so.23.0git+0x302857)
#12 0x00007c9f07c73ac6 llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMAMDGPUCodeGen.so.23.0git+0x473ac6)
#13 0x00007c9f00500824 llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMCore.so.23.0git+0x300824)
#14 0x00007c9f07c741b6 llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMAMDGPUCodeGen.so.23.0git+0x4741b6)
#15 0x00007c9f005013c7 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMCore.so.23.0git+0x3013c7)
#16 0x00007c9f049057fe (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
#17 0x00007c9f04907fa4 (anonymous namespace)::EmitAssemblyHelper::emitAssembly(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) BackendUtil.cpp:0:0
#18 0x00007c9f0490a018 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*) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libclangCodeGen.so.23.0git+0x10a018)
#19 0x00007c9f04d6a65a clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libclangCodeGen.so.23.0git+0x56a65a)
#20 0x00007c9efce6219c clang::ParseAST(clang::Sema&, bool, bool) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/../lib/libclangParse.so.23.0git+0x4419c)
#21 0x00007c9f029452d1 clang::FrontendAction::Execute() (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libclangFrontend.so.23.0git+0x1452d1)
#22 0x00007c9f028c7f95 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libclangFrontend.so.23.0git+0xc7f95)
#23 0x00007c9f077b1ec3 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libclangFrontendTool.so.23.0git+0x5ec3)
#24 0x000058eae1c30ad6 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/./bin/clang+++0x17ad6)
#25 0x000058eae1c2681a ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) driver.cpp:0:0
#26 0x000058eae1c269af int llvm::function_ref<int (llvm::SmallVectorImpl<char const*>&)>::callback_fn<clang_main(int, char**, llvm::ToolContext const&)::'lambda'(llvm::SmallVectorImpl<char const*>&)>(long, llvm::SmallVectorImpl<char const*>&) driver.cpp:0:0
#27 0x00007c9f02cca52d 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::'lambda'()>(long) Job.cpp:0:0
#28 0x00007c9effef2f90 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/home/botworker/bbot/openmp-offload-libc-amdgpu-runtime/build/bin/../lib/libLLVMSupport.so.23.0git+0xf2f90)
#29 0x00007c9f02ccb3f3 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optional<llvm::StringRef>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, bool*) const (.part.0) Job.cpp:0:0
```
</details>
https://github.com/llvm/llvm-project/pull/207791
More information about the llvm-commits
mailing list