[PATCH] optimize bitmap_bit_p + bitmap_{clear,set}_bit

Mark Mitchell mark@codesourcery.com
Thu Aug 19 20:05:00 GMT 2010


Richard Guenther wrote:

>> This patch does the same thing for (nearly) all other relevant calls to
>> bitmap_bit_p.  I might have missed a couple and I think there were one
>> or two that looked particularly tricky to untangle, so I left them
>> as-is.
>>
>> Tested on x86_64-unknown-linux-gnu.  OK to commit?
> 
> Ok.

I like this patch just for the fact that it simplifies use of the API,
in addition to the fact that it should theoretically be a bit faster.
Out of curiosity, did you measure any speedup?

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list