https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111600
--- Comment #39 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Robin Dapp <rd...@gcc.gnu.org>: https://gcc.gnu.org/g:2e6b3308af6ddf87925321ddd2d387bfd352e410 commit r15-5652-g2e6b3308af6ddf87925321ddd2d387bfd352e410 Author: Robin Dapp <rd...@ventanamicro.com> Date: Thu Nov 21 15:34:37 2024 +0100 genemit: Distribute evenly to files [PR111600]. currently we distribute insn patterns in genemit, partitioning them by the number of patterns per file. The first 100 into file 1, the next 100 into file 2, and so on. Depending on the patterns this can lead to files of very uneven sizes. Similar to the genmatch split, this patch introduces a dynamic choose_output () which considers the size of the output files and selects the shortest one for the next pattern. gcc/ChangeLog: PR target/111600 * genemit.cc (handle_arg): Use files instead of filenames. (main): Ditto. * gensupport.cc (SIZED_BASED_CHUNKS): Define. (choose_output): New function. * gensupport.h (choose_output): Declare.