aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorRobin Dapp <rdapp@ventanamicro.com>2024-11-21 15:34:37 +0100
committerRobin Dapp <rdapp@ventanamicro.com>2024-11-25 16:01:48 +0100
commit2e6b3308af6ddf87925321ddd2d387bfd352e410 (patch)
tree2530a34c824d854f49831048c0d20e2ca99583c7 /gcc/config.gcc
parentcd8db107b9bef73fd822ffb420f96ed2bc622a19 (diff)
downloadgcc-2e6b3308af6ddf87925321ddd2d387bfd352e410.zip
gcc-2e6b3308af6ddf87925321ddd2d387bfd352e410.tar.gz
gcc-2e6b3308af6ddf87925321ddd2d387bfd352e410.tar.bz2
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.
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions