[llvm] [AMDGPU] Avoid resource propagation for recursion through multiple functions (PR #111004)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 11 08:47:58 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `llvm` at step 3 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/7371
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 3 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/hip-build.sh --jobs=' (failure)
...
[26/40] : && /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang -O3 -DNDEBUG tools/CMakeFiles/timeit-target.dir/timeit.c.o -o tools/timeit-target && :
[27/40] /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang -DNDEBUG -O3 -DNDEBUG -w -Werror=date-time -MD -MT tools/CMakeFiles/fpcmp-target.dir/fpcmp.c.o -MF tools/CMakeFiles/fpcmp-target.dir/fpcmp.c.o.d -o tools/CMakeFiles/fpcmp-target.dir/fpcmp.c.o -c /buildbot/llvm-test-suite/tools/fpcmp.c
[28/40] : && /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang -O3 -DNDEBUG tools/CMakeFiles/fpcmp-target.dir/fpcmp.c.o -o tools/fpcmp-target && :
[29/40] /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang++ -DNDEBUG -O3 -DNDEBUG -w -Werror=date-time --rocm-path=/buildbot/Externals/hip/rocm-6.0.2 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1030 --offload-arch=gfx1100 -MD -MT External/HIP/CMakeFiles/empty-hip-6.0.2.dir/empty.hip.o -MF External/HIP/CMakeFiles/empty-hip-6.0.2.dir/empty.hip.o.d -o External/HIP/CMakeFiles/empty-hip-6.0.2.dir/empty.hip.o -c /buildbot/llvm-test-suite/External/HIP/empty.hip
[30/40] : && /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang++ -O3 -DNDEBUG External/HIP/CMakeFiles/empty-hip-6.0.2.dir/empty.hip.o -o External/HIP/empty-hip-6.0.2 --rocm-path=/buildbot/Externals/hip/rocm-6.0.2 --hip-link -rtlib=compiler-rt -unwindlib=libgcc -frtlib-add-rpath && cd /buildbot/hip-vega20-0/clang-hip-vega20/test-suite-build/External/HIP && /usr/local/bin/cmake -E create_symlink /buildbot/llvm-test-suite/External/HIP/empty.reference_output /buildbot/hip-vega20-0/clang-hip-vega20/test-suite-build/External/HIP/empty.reference_output-hip-6.0.2
[31/40] /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang++ -DNDEBUG -O3 -DNDEBUG -w -Werror=date-time --rocm-path=/buildbot/Externals/hip/rocm-6.0.2 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1030 --offload-arch=gfx1100 -fopenmp -MD -MT External/HIP/CMakeFiles/with-fopenmp-hip-6.0.2.dir/with-fopenmp.hip.o -MF External/HIP/CMakeFiles/with-fopenmp-hip-6.0.2.dir/with-fopenmp.hip.o.d -o External/HIP/CMakeFiles/with-fopenmp-hip-6.0.2.dir/with-fopenmp.hip.o -c /buildbot/llvm-test-suite/External/HIP/with-fopenmp.hip
[32/40] : && /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang++ -O3 -DNDEBUG External/HIP/CMakeFiles/with-fopenmp-hip-6.0.2.dir/with-fopenmp.hip.o -o External/HIP/with-fopenmp-hip-6.0.2 --rocm-path=/buildbot/Externals/hip/rocm-6.0.2 --hip-link -rtlib=compiler-rt -unwindlib=libgcc -frtlib-add-rpath && cd /buildbot/hip-vega20-0/clang-hip-vega20/test-suite-build/External/HIP && /usr/local/bin/cmake -E create_symlink /buildbot/llvm-test-suite/External/HIP/with-fopenmp.reference_output /buildbot/hip-vega20-0/clang-hip-vega20/test-suite-build/External/HIP/with-fopenmp.reference_output-hip-6.0.2
[33/40] /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang++ -DNDEBUG -O3 -DNDEBUG -w -Werror=date-time --rocm-path=/buildbot/Externals/hip/rocm-6.0.2 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1030 --offload-arch=gfx1100 -MD -MT External/HIP/CMakeFiles/saxpy-hip-6.0.2.dir/saxpy.hip.o -MF External/HIP/CMakeFiles/saxpy-hip-6.0.2.dir/saxpy.hip.o.d -o External/HIP/CMakeFiles/saxpy-hip-6.0.2.dir/saxpy.hip.o -c /buildbot/llvm-test-suite/External/HIP/saxpy.hip
[34/40] : && /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang++ -O3 -DNDEBUG External/HIP/CMakeFiles/saxpy-hip-6.0.2.dir/saxpy.hip.o -o External/HIP/saxpy-hip-6.0.2 --rocm-path=/buildbot/Externals/hip/rocm-6.0.2 --hip-link -rtlib=compiler-rt -unwindlib=libgcc -frtlib-add-rpath && cd /buildbot/hip-vega20-0/clang-hip-vega20/test-suite-build/External/HIP && /usr/local/bin/cmake -E create_symlink /buildbot/llvm-test-suite/External/HIP/saxpy.reference_output /buildbot/hip-vega20-0/clang-hip-vega20/test-suite-build/External/HIP/saxpy.reference_output-hip-6.0.2
[35/40] /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang++ -DNDEBUG -O3 -DNDEBUG -w -Werror=date-time --rocm-path=/buildbot/Externals/hip/rocm-6.0.2 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1030 --offload-arch=gfx1100 -xhip -mfma -MD -MT External/HIP/CMakeFiles/TheNextWeek-hip-6.0.2.dir/workload/ray-tracing/TheNextWeek/main.cc.o -MF External/HIP/CMakeFiles/TheNextWeek-hip-6.0.2.dir/workload/ray-tracing/TheNextWeek/main.cc.o.d -o External/HIP/CMakeFiles/TheNextWeek-hip-6.0.2.dir/workload/ray-tracing/TheNextWeek/main.cc.o -c /buildbot/llvm-test-suite/External/HIP/workload/ray-tracing/TheNextWeek/main.cc
FAILED: External/HIP/CMakeFiles/TheNextWeek-hip-6.0.2.dir/workload/ray-tracing/TheNextWeek/main.cc.o
/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang++ -DNDEBUG -O3 -DNDEBUG -w -Werror=date-time --rocm-path=/buildbot/Externals/hip/rocm-6.0.2 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1030 --offload-arch=gfx1100 -xhip -mfma -MD -MT External/HIP/CMakeFiles/TheNextWeek-hip-6.0.2.dir/workload/ray-tracing/TheNextWeek/main.cc.o -MF External/HIP/CMakeFiles/TheNextWeek-hip-6.0.2.dir/workload/ray-tracing/TheNextWeek/main.cc.o.d -o External/HIP/CMakeFiles/TheNextWeek-hip-6.0.2.dir/workload/ray-tracing/TheNextWeek/main.cc.o -c /buildbot/llvm-test-suite/External/HIP/workload/ray-tracing/TheNextWeek/main.cc
already visited expression
UNREACHABLE executed at /buildbot/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCResourceInfo.cpp:103!
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19 -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -Werror=atomic-alignment -emit-obj -disable-free -clear-ast-before-backend -main-file-name main.cc -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -aux-target-feature +fma -fcuda-is-device -mllvm -amdgpu-internalize-symbols -fcuda-allow-variadic-functions -fvisibility=hidden -fapply-global-visibility-to-externs -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/hip.bc -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/ocml.bc -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/ockl.bc -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/oclc_daz_opt_off.bc -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/oclc_unsafe_math_off.bc -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/oclc_finite_only_off.bc -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/oclc_wavefrontsize64_off.bc -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/oclc_isa_version_1030.bc -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/oclc_abi_version_400.bc -target-cpu gfx1030 -debugger-tuning=gdb -fdebug-compilation-dir=/buildbot/hip-vega20-0/clang-hip-vega20/test-suite-build -resource-dir /buildbot/hip-vega20-0/clang-hip-vega20/llvm/lib/clang/20 -dependency-file External/HIP/CMakeFiles/TheNextWeek-hip-6.0.2.dir/workload/ray-tracing/TheNextWeek/main.cc.o.d -MT External/HIP/CMakeFiles/TheNextWeek-hip-6.0.2.dir/workload/ray-tracing/TheNextWeek/main.cc.o -sys-header-deps -internal-isystem /buildbot/hip-vega20-0/clang-hip-vega20/llvm/lib/clang/20/include/cuda_wrappers -idirafter /buildbot/Externals/hip/rocm-6.0.2/include -include __clang_hip_runtime_wrapper.h -D NDEBUG -D NDEBUG -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /buildbot/hip-vega20-0/clang-hip-vega20/llvm/lib/clang/20/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /buildbot/hip-vega20-0/clang-hip-vega20/llvm/lib/clang/20/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Werror=date-time -w -fdeprecated-macro -fno-autolink -ferror-limit 19 -fhip-new-launch-api -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -cuid=9c43066b7056eb66 -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/main-gfx1030-eba29b.o -x hip /buildbot/llvm-test-suite/External/HIP/workload/ray-tracing/TheNextWeek/main.cc
1. <eof> parser at end of file
2. Code generation
3. Running pass 'CallGraph Pass Manager' on module '/buildbot/llvm-test-suite/External/HIP/workload/ray-tracing/TheNextWeek/main.cc'.
4. Running pass 'AMDGPU Assembly Printer' on function '@_ZN4TestI14random_spheresE18devSceneInitKernelEv'
#0 0x00005621368147e0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x2b117e0)
#1 0x0000562136811bef llvm::sys::RunSignalHandlers() (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x2b0ebef)
#2 0x0000562136811d45 SignalHandler(int) Signals.cpp:0:0
#3 0x00007f99e1871520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x00007f99e18c59fc __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
#5 0x00007f99e18c59fc __pthread_kill_internal ./nptl/pthread_kill.c:78:10
#6 0x00007f99e18c59fc pthread_kill ./nptl/pthread_kill.c:89:10
#7 0x00007f99e1871476 gsignal ./signal/../sysdeps/posix/raise.c:27:6
#8 0x00007f99e18577f3 abort ./stdlib/abort.c:81:7
#9 0x000056213676703e (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x2a6403e)
#10 0x0000562134babecf foundRecursiveSymbolDef(llvm::MCSymbol*, llvm::MCExpr const*) AMDGPUMCResourceInfo.cpp:0:0
#11 0x0000562134bad0a7 llvm::MCResourceInfo::gatherResourceInfo(llvm::MachineFunction const&, llvm::AMDGPUResourceUsageAnalysis::SIFunctionResourceInfo const&, llvm::MCContext&) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0xeaa0a7)
#12 0x0000562134b9d25c llvm::AMDGPUAsmPrinter::runOnMachineFunction(llvm::MachineFunction&) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0xe9a25c)
#13 0x0000562135ae06b7 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) MachineFunctionPass.cpp:0:0
#14 0x000056213614cf07 llvm::FPPassManager::runOnFunction(llvm::Function&) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x2449f07)
#15 0x00005621356cfaf2 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) CallGraphSCCPass.cpp:0:0
#16 0x000056213614dd11 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x244ad11)
#17 0x0000562136aabfb8 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, 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*) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x2da8fb8)
#18 0x0000562137151775 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x344e775)
#19 0x0000562138eaf87c clang::ParseAST(clang::Sema&, bool, bool) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x51ac87c)
#20 0x000056213742fd69 clang::FrontendAction::Execute() (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x372cd69)
#21 0x00005621373a9595 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x36a6595)
#22 0x000056213750e423 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x380b423)
#23 0x0000562134b839d7 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0xe809d7)
#24 0x0000562134b7b02a ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#25 0x0000562134b7f2ee clang_main(int, char**, llvm::ToolContext const&) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0xe7c2ee)
#26 0x0000562134aaaa5b main (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0xda7a5b)
#27 0x00007f99e1858d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
Step 11 (Building HIP test-suite) failure: Building HIP test-suite (failure)
...
[26/40] : && /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang -O3 -DNDEBUG tools/CMakeFiles/timeit-target.dir/timeit.c.o -o tools/timeit-target && :
[27/40] /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang -DNDEBUG -O3 -DNDEBUG -w -Werror=date-time -MD -MT tools/CMakeFiles/fpcmp-target.dir/fpcmp.c.o -MF tools/CMakeFiles/fpcmp-target.dir/fpcmp.c.o.d -o tools/CMakeFiles/fpcmp-target.dir/fpcmp.c.o -c /buildbot/llvm-test-suite/tools/fpcmp.c
[28/40] : && /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang -O3 -DNDEBUG tools/CMakeFiles/fpcmp-target.dir/fpcmp.c.o -o tools/fpcmp-target && :
[29/40] /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang++ -DNDEBUG -O3 -DNDEBUG -w -Werror=date-time --rocm-path=/buildbot/Externals/hip/rocm-6.0.2 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1030 --offload-arch=gfx1100 -MD -MT External/HIP/CMakeFiles/empty-hip-6.0.2.dir/empty.hip.o -MF External/HIP/CMakeFiles/empty-hip-6.0.2.dir/empty.hip.o.d -o External/HIP/CMakeFiles/empty-hip-6.0.2.dir/empty.hip.o -c /buildbot/llvm-test-suite/External/HIP/empty.hip
[30/40] : && /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang++ -O3 -DNDEBUG External/HIP/CMakeFiles/empty-hip-6.0.2.dir/empty.hip.o -o External/HIP/empty-hip-6.0.2 --rocm-path=/buildbot/Externals/hip/rocm-6.0.2 --hip-link -rtlib=compiler-rt -unwindlib=libgcc -frtlib-add-rpath && cd /buildbot/hip-vega20-0/clang-hip-vega20/test-suite-build/External/HIP && /usr/local/bin/cmake -E create_symlink /buildbot/llvm-test-suite/External/HIP/empty.reference_output /buildbot/hip-vega20-0/clang-hip-vega20/test-suite-build/External/HIP/empty.reference_output-hip-6.0.2
[31/40] /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang++ -DNDEBUG -O3 -DNDEBUG -w -Werror=date-time --rocm-path=/buildbot/Externals/hip/rocm-6.0.2 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1030 --offload-arch=gfx1100 -fopenmp -MD -MT External/HIP/CMakeFiles/with-fopenmp-hip-6.0.2.dir/with-fopenmp.hip.o -MF External/HIP/CMakeFiles/with-fopenmp-hip-6.0.2.dir/with-fopenmp.hip.o.d -o External/HIP/CMakeFiles/with-fopenmp-hip-6.0.2.dir/with-fopenmp.hip.o -c /buildbot/llvm-test-suite/External/HIP/with-fopenmp.hip
[32/40] : && /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang++ -O3 -DNDEBUG External/HIP/CMakeFiles/with-fopenmp-hip-6.0.2.dir/with-fopenmp.hip.o -o External/HIP/with-fopenmp-hip-6.0.2 --rocm-path=/buildbot/Externals/hip/rocm-6.0.2 --hip-link -rtlib=compiler-rt -unwindlib=libgcc -frtlib-add-rpath && cd /buildbot/hip-vega20-0/clang-hip-vega20/test-suite-build/External/HIP && /usr/local/bin/cmake -E create_symlink /buildbot/llvm-test-suite/External/HIP/with-fopenmp.reference_output /buildbot/hip-vega20-0/clang-hip-vega20/test-suite-build/External/HIP/with-fopenmp.reference_output-hip-6.0.2
[33/40] /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang++ -DNDEBUG -O3 -DNDEBUG -w -Werror=date-time --rocm-path=/buildbot/Externals/hip/rocm-6.0.2 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1030 --offload-arch=gfx1100 -MD -MT External/HIP/CMakeFiles/saxpy-hip-6.0.2.dir/saxpy.hip.o -MF External/HIP/CMakeFiles/saxpy-hip-6.0.2.dir/saxpy.hip.o.d -o External/HIP/CMakeFiles/saxpy-hip-6.0.2.dir/saxpy.hip.o -c /buildbot/llvm-test-suite/External/HIP/saxpy.hip
[34/40] : && /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang++ -O3 -DNDEBUG External/HIP/CMakeFiles/saxpy-hip-6.0.2.dir/saxpy.hip.o -o External/HIP/saxpy-hip-6.0.2 --rocm-path=/buildbot/Externals/hip/rocm-6.0.2 --hip-link -rtlib=compiler-rt -unwindlib=libgcc -frtlib-add-rpath && cd /buildbot/hip-vega20-0/clang-hip-vega20/test-suite-build/External/HIP && /usr/local/bin/cmake -E create_symlink /buildbot/llvm-test-suite/External/HIP/saxpy.reference_output /buildbot/hip-vega20-0/clang-hip-vega20/test-suite-build/External/HIP/saxpy.reference_output-hip-6.0.2
[35/40] /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang++ -DNDEBUG -O3 -DNDEBUG -w -Werror=date-time --rocm-path=/buildbot/Externals/hip/rocm-6.0.2 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1030 --offload-arch=gfx1100 -xhip -mfma -MD -MT External/HIP/CMakeFiles/TheNextWeek-hip-6.0.2.dir/workload/ray-tracing/TheNextWeek/main.cc.o -MF External/HIP/CMakeFiles/TheNextWeek-hip-6.0.2.dir/workload/ray-tracing/TheNextWeek/main.cc.o.d -o External/HIP/CMakeFiles/TheNextWeek-hip-6.0.2.dir/workload/ray-tracing/TheNextWeek/main.cc.o -c /buildbot/llvm-test-suite/External/HIP/workload/ray-tracing/TheNextWeek/main.cc
FAILED: External/HIP/CMakeFiles/TheNextWeek-hip-6.0.2.dir/workload/ray-tracing/TheNextWeek/main.cc.o
/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang++ -DNDEBUG -O3 -DNDEBUG -w -Werror=date-time --rocm-path=/buildbot/Externals/hip/rocm-6.0.2 --offload-arch=gfx908 --offload-arch=gfx90a --offload-arch=gfx1030 --offload-arch=gfx1100 -xhip -mfma -MD -MT External/HIP/CMakeFiles/TheNextWeek-hip-6.0.2.dir/workload/ray-tracing/TheNextWeek/main.cc.o -MF External/HIP/CMakeFiles/TheNextWeek-hip-6.0.2.dir/workload/ray-tracing/TheNextWeek/main.cc.o.d -o External/HIP/CMakeFiles/TheNextWeek-hip-6.0.2.dir/workload/ray-tracing/TheNextWeek/main.cc.o -c /buildbot/llvm-test-suite/External/HIP/workload/ray-tracing/TheNextWeek/main.cc
already visited expression
UNREACHABLE executed at /buildbot/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMCResourceInfo.cpp:103!
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19 -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -Werror=atomic-alignment -emit-obj -disable-free -clear-ast-before-backend -main-file-name main.cc -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=none -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -aux-target-feature +fma -fcuda-is-device -mllvm -amdgpu-internalize-symbols -fcuda-allow-variadic-functions -fvisibility=hidden -fapply-global-visibility-to-externs -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/hip.bc -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/ocml.bc -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/ockl.bc -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/oclc_daz_opt_off.bc -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/oclc_unsafe_math_off.bc -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/oclc_finite_only_off.bc -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/oclc_wavefrontsize64_off.bc -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/oclc_isa_version_1030.bc -mlink-builtin-bitcode /buildbot/Externals/hip/rocm-6.0.2/amdgcn/bitcode/oclc_abi_version_400.bc -target-cpu gfx1030 -debugger-tuning=gdb -fdebug-compilation-dir=/buildbot/hip-vega20-0/clang-hip-vega20/test-suite-build -resource-dir /buildbot/hip-vega20-0/clang-hip-vega20/llvm/lib/clang/20 -dependency-file External/HIP/CMakeFiles/TheNextWeek-hip-6.0.2.dir/workload/ray-tracing/TheNextWeek/main.cc.o.d -MT External/HIP/CMakeFiles/TheNextWeek-hip-6.0.2.dir/workload/ray-tracing/TheNextWeek/main.cc.o -sys-header-deps -internal-isystem /buildbot/hip-vega20-0/clang-hip-vega20/llvm/lib/clang/20/include/cuda_wrappers -idirafter /buildbot/Externals/hip/rocm-6.0.2/include -include __clang_hip_runtime_wrapper.h -D NDEBUG -D NDEBUG -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /buildbot/hip-vega20-0/clang-hip-vega20/llvm/lib/clang/20/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /buildbot/hip-vega20-0/clang-hip-vega20/llvm/lib/clang/20/include -internal-isystem /usr/local/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Werror=date-time -w -fdeprecated-macro -fno-autolink -ferror-limit 19 -fhip-new-launch-api -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -cuid=9c43066b7056eb66 -fcuda-allow-variadic-functions -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/main-gfx1030-eba29b.o -x hip /buildbot/llvm-test-suite/External/HIP/workload/ray-tracing/TheNextWeek/main.cc
1. <eof> parser at end of file
2. Code generation
3. Running pass 'CallGraph Pass Manager' on module '/buildbot/llvm-test-suite/External/HIP/workload/ray-tracing/TheNextWeek/main.cc'.
4. Running pass 'AMDGPU Assembly Printer' on function '@_ZN4TestI14random_spheresE18devSceneInitKernelEv'
#0 0x00005621368147e0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x2b117e0)
#1 0x0000562136811bef llvm::sys::RunSignalHandlers() (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x2b0ebef)
#2 0x0000562136811d45 SignalHandler(int) Signals.cpp:0:0
#3 0x00007f99e1871520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x00007f99e18c59fc __pthread_kill_implementation ./nptl/pthread_kill.c:44:76
#5 0x00007f99e18c59fc __pthread_kill_internal ./nptl/pthread_kill.c:78:10
#6 0x00007f99e18c59fc pthread_kill ./nptl/pthread_kill.c:89:10
#7 0x00007f99e1871476 gsignal ./signal/../sysdeps/posix/raise.c:27:6
#8 0x00007f99e18577f3 abort ./stdlib/abort.c:81:7
#9 0x000056213676703e (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x2a6403e)
#10 0x0000562134babecf foundRecursiveSymbolDef(llvm::MCSymbol*, llvm::MCExpr const*) AMDGPUMCResourceInfo.cpp:0:0
#11 0x0000562134bad0a7 llvm::MCResourceInfo::gatherResourceInfo(llvm::MachineFunction const&, llvm::AMDGPUResourceUsageAnalysis::SIFunctionResourceInfo const&, llvm::MCContext&) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0xeaa0a7)
#12 0x0000562134b9d25c llvm::AMDGPUAsmPrinter::runOnMachineFunction(llvm::MachineFunction&) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0xe9a25c)
#13 0x0000562135ae06b7 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) MachineFunctionPass.cpp:0:0
#14 0x000056213614cf07 llvm::FPPassManager::runOnFunction(llvm::Function&) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x2449f07)
#15 0x00005621356cfaf2 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) CallGraphSCCPass.cpp:0:0
#16 0x000056213614dd11 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x244ad11)
#17 0x0000562136aabfb8 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, 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*) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x2da8fb8)
#18 0x0000562137151775 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x344e775)
#19 0x0000562138eaf87c clang::ParseAST(clang::Sema&, bool, bool) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x51ac87c)
#20 0x000056213742fd69 clang::FrontendAction::Execute() (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x372cd69)
#21 0x00005621373a9595 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x36a6595)
#22 0x000056213750e423 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0x380b423)
#23 0x0000562134b839d7 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0xe809d7)
#24 0x0000562134b7b02a ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#25 0x0000562134b7f2ee clang_main(int, char**, llvm::ToolContext const&) (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0xe7c2ee)
#26 0x0000562134aaaa5b main (/buildbot/hip-vega20-0/clang-hip-vega20/llvm/bin/clang-19+0xda7a5b)
#27 0x00007f99e1858d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
```
</details>
https://github.com/llvm/llvm-project/pull/111004
More information about the llvm-commits
mailing list