[Xtensa] speed up assembler for large inputs

Bob Wilson bwilson@tensilica.com
Tue Jun 19 19:08:00 GMT 2007


I've committed this patch from Sterling Augustine to fix a performance problem 
for large input files.  The code was O(N^2).  The patch simply records the 
position of a frag to avoid searching repeatedly for the right position.  I 
verified that it causes no testsuite regressions for an xtensa-elf target.

2007-06-19  Sterling Augustine  <sterling@tensilica.com>

	* config/tc-xtensa.h (struct xtensa_frag_type): Update comment about
	use of literal_frag field.
	* config/tc-xtensa.c (xtensa_mark_literal_pool_location): Record frag
	in the literal_frag field.
	(xtensa_move_literals): Use it here instead of searching.  Update
	literal_frag field with new value.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gas-literal-frag.patch
Type: text/x-diff
Size: 2319 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20070619/f59df6cd/attachment.bin>


More information about the Binutils mailing list