------- Comment #6 from laurent at guerby dot net 2010-05-11 08:50 -------
(gdb) l
203 static int
204 cgraph_estimate_size_after_inlining (int times, struct cgraph_node *to,
205 struct cgraph_node *what)
206 {
207 int size = (what->global.size - inline_summary
(what)->size_inlining_benefit) * times + to->global.size;
208 gcc_assert (size >= 0);
209 return size;
210 }
211
212 /* Scale frequency of NODE edges by FREQ_SCALE and increase loop nest
(gdb) p size
$1 = -2
(gdb) p what->global.size
$2 = 1
(gdb) p times
$3 = 1
(gdb) p to->global.size
$4 = 0
(gdb) p inline_summary (what)->size_inlining_benefit
$5 = 3
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44063