speed up Xtensa GAS port

Bob Wilson bwilson@tensilica.com
Tue Dec 20 18:13:00 GMT 2005


I'm committing this patch to speed up the Xtensa port of GAS.  It makes a minor 
change to the order of fields in the "vliw_insn" structure so that most of the 
fields can be zero'ed with a single memset call.  It also adds a small 
optimization for the common case of an instruction with a single operation slot. 
  Tested with no regressions for an xtensa-elf target.

2005-12-20  Sterling Augustine  <sterling@tensilica.com>

	* config/tc-xtensa.c (xg_find_narrowest_format): Optimize 1 slot case.
	(xg_init_vinsn): Remove redundant initialization.
	(xg_clear_vinsn): Zero all the slots with a single memset.
	* config/xtensa-istack.h (vliw_insn): Move insnbuf field after slots.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gas-initperf.diff
Type: text/x-patch
Size: 2057 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20051220/c100a5fc/attachment.bin>


More information about the Binutils mailing list