This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Short-circuit some bitmap lookups


   From: Richard Earnshaw <rearnsha@arm.com>
   Date: Tue, 21 May 2002 15:48:16 +0100

   As discussed on the recent thread on compile-time performance:
   
   On Mon, May 20, 2002 at 02:34:12PM +0100, Richard Earnshaw wrote:
   > Here's some more relatively low hanging fruit to pick.  bitmap_find_bit is 
   > probably the most-called function in the compiler (ok, it is inlined, but 
   > it is still effectively called).  This cuts the execution time of the 
   > function by about 45% (according to gprof).  It simply notes that if head->
   > current is the element we want, we don't have to go and do a lot of 
   > grunging to reposition the current element to itself!
   
   Bootstrapped on i686-linux.
   
   2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
   
   	* bitmap.c (bitmap_find_bit): Return early if we have the correct
   	element cached.
   
Richard, after some discussion with Mark I've installed your change on
the branch as well after doing bootstrap/regtesting on sparc-linux and
sparc64-linux.

Franks a lot,
David S. Miller
davem@redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]