2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
commitef0792f1418d7d4b99858e7233cd91dfdf2ad9d0
authoredlinger <edlinger@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Nov 2016 22:10:37 +0000 (15 22:10 +0000)
committeredlinger <edlinger@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Nov 2016 22:10:37 +0000 (15 22:10 +0000)
tree745ce1201ab430be25f2b58578df4d2bb0417aef
parentaed4a114920eadd9821dcbead65c508686f030cc
2016-11-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
        Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
        Use DEF_ATTR_STRING for string arguments.  Use RTL_HASH for
        integer arguments.  Only set ATTR_PERMANENT_P on newly hashed
        rtx when all sub-rtx are also permanent.
        (attr_eq): Simplify.
        (attr_copy_rtx): Remove.
        (make_canonical, get_attr_value): Use attr_equal_p.
        (copy_boolean): Rehash NOT.
        (simplify_test_exp_in_temp,
        optimize_attrs): Remove call to attr_copy_rtx.
        (attr_alt_intersection, attr_alt_union,
        attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
        (make_automaton_attrs): Use attr_eq.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@242460 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/genattrtab.c