https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123749
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Prachi Godbole <[email protected]>: https://gcc.gnu.org/g:0f8e6cf83b4f406d198973a6131a3944b60b1d0f commit r16-8147-g0f8e6cf83b4f406d198973a6131a3944b60b1d0f Author: Prachi Godbole <[email protected]> Date: Tue Mar 17 22:24:00 2026 -0700 [PATCH] ipa-reorder-for-locality - Fix PR123749 avoid creating new partition if no more nodes left to process This patch fixes PR123749 which caused by an empty partition created in WPA partitioning pass as a result of -fipa-reorder-for-locality creating one. This also fixes an indentation issue. Bootstrapped and regtested on aarch64-none-linux-gnu. OK for mainline? Signed-off-by: Prachi Godbole <[email protected]> gcc/Changelog: PR target/123749 * ipa-locality-cloning.cc (partition_callchain): Start new partition if no. of insns exceeds size and if there are nodes to process.
