https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120042
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>: https://gcc.gnu.org/g:299d48ff4a34c00a6ef964b694fb9b1312683049 commit r16-316-g299d48ff4a34c00a6ef964b694fb9b1312683049 Author: Andrew Pinski <quic_apin...@quicinc.com> Date: Wed Apr 30 15:10:29 2025 -0700 vectorizer: Fix riscv build [PR120042] r15-9859-ga6cfde60d8c added a call to dominated_by_p to tree-vectorizer.h but dominance.h is not always included; and you get a build failure on riscv building riscv-vector-costs.cc. Let's add the include of dominance.h to tree-vectorizer.h Pushed as obvious after builds for riscv and x86_64. gcc/ChangeLog: PR target/120042 * tree-vectorizer.h: Include dominance.h. Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>