This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
get the number of spilling
- From: kito <npickito at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 7 Oct 2009 10:45:27 +0800
- Subject: get the number of spilling
Hello everybody:
I want to count the number of spilling.
I have try to compile file with -fdump-rtl-ira
And then use `grep Spilling *.ira | wc -l`
Does it's right way to get the number of spilling?
I am confuse about the result data because the number of spilling is
-O1 < -O2 < -O3.
Benchmark : SPEC2000
target: arm-linux-elf
gcc version : 4.4.0
-O1 -O2 -O3
164.zip 1338 1407 3033
181.mcf 305 362 603
186.crafty 4888 7159 7878