Inliner speedup

2011-05-07 Thread Jan Hubicka
Hi, while profiling Mozilla build I noticed that I inadvertly broke the optimization of lazily updating priority queue. This patch restores the behaviour and gets inliner down to 30s. (out of 10 minutes build) bootstrapped/regtested x86_64 & comitted. Honza Index: ChangeLog ===

Minor inliner speedup

2011-05-04 Thread Jan Hubicka
Hi, this patch makes inliner more selective about when to test can_inline_edge_p and when to reset edge caches. The first appears quite hot in Mozilla LTO build profiles now, since we used to do way too many resets even when not neccesary. After inlining function A to B, we need: 1) reset edge