error: can't find enough VGPRs for wwm-regalloc on gfx801/gfx802/gfx803

This is the error when building current main after #4958 (closed) (9c623e87) with GMX_HIP_TARGET_ARCH=gfx801:

FAILED: [code=1] src/gromacs/CMakeFiles/libgromacs.dir/ewald/pme_gather_hip.cpp.o
/opt/rocm/lib/llvm/bin/clang++  -DGMX_DOUBLE=0 -DHAVE_CONFIG_H -DTMPI_EXPORTS -DTMPI_USE_VISIBILITY -DUSE_PROF_API=1 -DUSE_STD_INTTYPES_H -D__HIP_PLATFORM_AMD__=1 -D__HIP_ROCclr__=1 -Dlibgromacs_EXPORTS -I/home/vedranmiletic/repos/gromacs/src/include -I/home/vedranmiletic/repos/gromacs/hipbuild/src/include -I/home/vedranmiletic/repos/gromacs/src -I/home/vedranmiletic/repos/gromacs/src/external/tng_io/include -I/home/vedranmiletic/repos/gromacs/hipbuild/tng/include -I/home/vedranmiletic/repos/gromacs/api/legacy/include -I/home/vedranmiletic/repos/gromacs/hipbuild/api/legacy/include -I/home/vedranmiletic/repos/gromacs/src/gromacs/math/include -I/home/vedranmiletic/repos/gromacs/src/gromacs/timing/include -I/home/vedranmiletic/repos/gromacs/src/gromacs/utility/include -I/home/vedranmiletic/repos/gromacs/src/gromacs/pbcutil/include -I/home/vedranmiletic/repos/gromacs/src/gromacs/pulling/include -I/home/vedranmiletic/repos/gromacs/src/gromacs/topology/include -I/home/vedranmiletic/repos/gromacs/src/gromacs/serialization/include -I/home/vedranmiletic/repos/gromacs/src/gromacs/linearalgebra/include -I/home/vedranmiletic/repos/gromacs/src/gromacs/simd/include -I/home/vedranmiletic/repos/gromacs/src/gromacs/taskassignment/include -isystem /home/vedranmiletic/repos/gromacs/src/external/thread_mpi/include -isystem /home/vedranmiletic/repos/gromacs/src/external -isystem /home/vedranmiletic/repos/gromacs/src/gromacs/../external/rpc_xdr -isystem /home/vedranmiletic/repos/gromacs/src/external/muparser/include -isystem /home/vedranmiletic/repos/gromacs/src/external/lmfit -isystem /home/vedranmiletic/repos/gromacs/src/external/colvars -isystem /home/vedranmiletic/repos/gromacs/src/external/plumed -std=c++20 -fPIC --offload-arch=gfx801 -fPIC -fno-gpu-rdc -ffast-math -munsafe-fp-atomics -fdenormal-fp-math=ieee -fcuda-flush-denormals-to-zero -fno-slp-vectorize -Wno-unused-command-line-argument -Wno-pass-failed -mavx2 -mfma -Wextra -Wpointer-arith -Wdeprecated -Wshadow-all -Wno-unused-function -Wno-reserved-identifier -Wno-missing-field-initializers -Wno-undef -Wno-cast-function-type-strict -MD -MT src/gromacs/CMakeFiles/libgromacs.dir/ewald/pme_gather_hip.cpp.o -MF src/gromacs/CMakeFiles/libgromacs.dir/ewald/pme_gather_hip.cpp.o.d -o src/gromacs/CMakeFiles/libgromacs.dir/ewald/pme_gather_hip.cpp.o -x hip -c /home/vedranmiletic/repos/gromacs/src/gromacs/ewald/pme_gather_hip.cpp
error: can't find enough VGPRs for wwm-regalloc
error: can't find enough VGPRs for wwm-regalloc
error: can't find enough VGPRs for wwm-regalloc
error: can't find enough VGPRs for wwm-regalloc
4 errors generated when compiling for gfx801.

It is the same story for gfx802 and gfx803.