[LLVMdev] [PATCH] increase the max number of physical registers
pekka.jaaskelainen at tut.fi
Tue Nov 24 12:07:23 CST 2009
Chris Lattner wrote:
> Please compare a release-asserts (make ENABLE_OPTIMIZED=1
> DISABLE_ASSERTIONS=1) builds with and without your patch. Just run
> 'llc' on a collection of large bc files (e.g. kimwitu++ from the
> testsuite, some SPEC2K6 programs if you have access to it, etc) and
> compare them.
OK. I compared the speed + memory consumption for a llc of
a 8M bitcode (AES encryption of 64 blocks, fully unrolled to
a single BB). No difference. Both had about 700M peak virt
memory consumption and it took about 45mins for 10 rounds.
More elaborate results:
time for i in $(seq 10); do echo $i; llc aes.bc -f -o aes.o; done;
Peak memory consumption monitored with
while true; do pmap $(pgrep llc) | tail -1; sleep 1; done;
The smallest and largest max values (of the 10 runs)
were picked from the output.
Without the patch:
mem 690960K ... 715476K
With the patch:
mem 691096K ... 715608K
More information about the LLVMdev