Commit 279be7c8 by Richard Earnshaw Committed by Richard Earnshaw

bitmap.c (bitmap_find_bit): Return early if we have the correct element cached.

* bitmap.c (bitmap_find_bit): Return early if we have the correct
element cached.

From-SVN: r53686
parent 193a563a
2002-05-21 Richard Earnshaw <rearnsha@arm.com>
* bitmap.c (bitmap_find_bit): Return early if we have the correct
element cached.
Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
* profile.c (gen_edge_profiler): Set alias set before the memory is
......
......@@ -300,8 +300,9 @@ bitmap_find_bit (head, bit)
bitmap_element *element;
unsigned HOST_WIDE_INT indx = bit / BITMAP_ELEMENT_ALL_BITS;
if (head->current == 0)
return 0;
if (head->current == 0
|| head->indx == indx)
return head->current;
if (head->indx > indx)
for (element = head->current;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment