Because of https://bugs.llvm.org/show_bug.cgi?id=32942 some tests take a long time to run. Right now running
./bin/llvm-lit --time-tests -sv ~/llvm/lld/test/ELF
takes 7.08s, the slowest tests being
2.77s: lld :: ELF/many-alloc-sections.s
6.15s: lld :: ELF/many-sections.s
with this patch the same command takes 2.37s and the slowest tests are
1.40s: lld :: ELF/many-alloc-sections.s
1.47s: lld :: ELF/many-sections.s