[PATCH] D25997: Call _exit
Rafael Ávila de Espíndola via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 26 09:52:34 PDT 2016
rafael created this revision.
rafael added a reviewer: ruiu.
rafael added a subscriber: llvm-commits.
Herald added a reviewer: tstellarAMD.
Herald added a subscriber: nhaehnle.
As the state of lld gets more complicated, shutting down gets more expensive.
In a normal lld run we can just call _exit immediately after renaming the temporary output file. We still want the ability to run a full shutdown since that is useful for detecting memory leaks.
The attached patch adds a --full-shutdown flag and changes lit to use it.
The speedups I got were
patch 7.208082567 1.00308347203x faster
patch 7.418814415 1.00120444016x faster
patch 5.125736748 1.01548390561x faster
patch 1.969078119 1.04074087322x faster
the gold plugin
patch 0.349688155 1.01727813171x faster
patch 0.59087035 1.01703487576x faster
patch 0.034052431 1.01773794065x faster
the gold plugin fsds
patch 0.378535563 1.02060666094x faster
patch 0.672882627 1.01959258342x faster
patch 0.031330437 1.02317235473x faster
patch 3.232975627 1.00223018786x faster
This also makes sure we don't have to worry to much about the shutdown cost of future changes.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5585 bytes
Desc: not available
More information about the llvm-commits