[PATCH 8/8] gas: xtensa: speed up find_trampoline_seg

Max Filippov jcmvbkbc@gmail.com
Mon Nov 27 23:23:00 GMT 2017


On Mon, Nov 27, 2017 at 2:11 PM, augustine.sterling@gmail.com
<augustine.sterling@gmail.com> wrote:
> On Mon, Nov 27, 2017 at 11:39 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:
>> find_trampoline_seg takes noticeable time when assembling source with
>> many sections. Cache the result of the most recent search and check it
>> first. No functional changes.
>>
>> gas/
>> 2017-11-20  Max Filippov  <jcmvbkbc@gmail.com>
>>
>>         * config/tc-xtensa.c (find_trampoline_seg): Add static variable
>>         that caches the result of the most recent search.
>
> This is OK.

Thanks, I've applied the whole series.

-- Max



More information about the Binutils mailing list