http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29442

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-05-07 
07:26:11 UTC ---
I must say I don't like the calling of potentially expensive get_attr_*
upfront.
Can't we instead introduce inlines, get_attr_*_cached (or macros), which would
take another argument by reference, initially initialized to a value don't know
by genattrtab, and they would cache the attribute value in that variable.
genattrtab would emit those if there is more than one call to that get_attr_*
for the insn.

Reply via email to