]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Enable reduced parallel batch sizes
authorAndrew Carlotti <andrew.carlotti@arm.com>
Tue, 4 Feb 2025 19:45:31 +0000 (19:45 +0000)
committerAndrew Carlotti <andrew.carlotti@arm.com>
Tue, 11 Feb 2025 17:59:12 +0000 (17:59 +0000)
commit00d943bf840386bd6e3e8a04554df5b528722e46
tree8925443d4a794ece87a32de6ed7696e6e4dcc1b0
parent9a2116f91150cf872e7d4a66036a81ecd2526b48
testsuite: Enable reduced parallel batch sizes

Various aarch64 tests attempt to reduce the batch size for parallel test
execution to a single test per batch, but it looks like the necessary
changes to gcc_parallel_test_run_p were accidentally omitted when the
aarch64-*-acle-asm.exp files were merged.  This patch corrects that
omission.

This does have a measurable performance impact when running a limited
number of tests.  For example, in aarch64-sve-acle-asm.exp the use of
torture options results in 16 compiler executions for each test; when
running two such tests I observed a total test duration of 3m39 without
this patch, and 1m55 with the patch.  A full batch of 10 tests would
have taken over 15 minutes to run on this machine.

gcc/testsuite/ChangeLog:

* lib/gcc-defs.exp
(gcc_runtest_parallelize_limit_minor): New global variable.
(gcc_parallel_test_run_p): Use new variable for batch size.
gcc/testsuite/lib/gcc-defs.exp