Not sure if that is something already fixed by already open issues, but I am putting it here for completeness.
Bisection points to JDK-8252372 yet again. Reproduces on latest master:
$ git describe master
jdk-18+5-77-gac75a53fc51
Unpack the attached fuzzer test and run:
$ ../build/linux-x86_64-server-fastdebug/images/jdk/bin/java -Xmx512m -Xcomp -XX:CompileOnly=Test Test
# Internal Error (/home/shade/trunks/jdk/src/hotspot/share/opto/loopnode.cpp:4931), pid=225012, tid=225025
# assert(!had_error) failed: bad dominance