https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121095
--- Comment #6 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:6916639b48357334579cf94717a3e51dd003e940 commit r16-2330-g6916639b48357334579cf94717a3e51dd003e940 Author: Andrew Pinski <quic_apin...@quicinc.com> Date: Wed Jul 16 09:31:35 2025 -0700 gcse: Skip hardreg pre when the hardreg is never live [PR121095] r15-6789-ge7f98d9603808b added a new RTL pass for hardreg PRE for the hard register of FPM_REGNUM, this pass could get expensive if you have a large number of basic blocks and the hard register was never live so it does nothing in the end. In the aarch64 case, FPM_REGNUM is only used for FP8 related code so it has a high probability of not being used. So skipping the pass for that register can improve both compile time and memory usage. Build and tested for aarch64-linux-gnu. PR middle-end/121095 gcc/ChangeLog: * gcse.cc (execute_hardreg_pre): Skip if the hardreg which is never live. Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>