The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
28.65k
stars
11.84k
forks
source link
AMDGPUPromoteAlloca triggered assert when attempting to cast the alloca user from <8 x i8> to ptr #80366
Closed
chichunchen closed 8 months ago
Backtrace:
Command for compiling the program:
clang++ -std=c++17 -fgpu-rdc -xhip --rocm-path=/opt/rocm-6.0.0 --offload-arch=gfx908 -O3 -nohipwrapperinc -nostdinc++ -nobuiltininc -nogpuinc -Wno-invalid-constexpr --offload-device-only -c test.cpp -Wno-ambiguous-ellipsis -Wno-inline-namespace-reopened-noninline -Wno-deprecated-builtins -Wno-unused-value -Wno-c++20-extensions -c test.cpp
The issue can be avoided if adding
-mllvm -amdgpu-promote-alloca-to-vector-limit=128
. (avoid the call topromoteAllocaUserToVector
)Reproducer: