Remove index from AARCH64_FUSION_PAIR
authorAndrew Pinski <apinski@cavium.com>
Sat, 22 Aug 2015 06:49:32 +0000 (06:49 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sat, 22 Aug 2015 06:49:32 +0000 (23:49 -0700)
commited9fa8d2a37d72d00e76f63968fad2f2819a3219
treefb86169043472e7715185405e9863a5257a048b2
parent2321dd914f1f8a77cb01981ef25d1d9681aff482
Remove index from AARCH64_FUSION_PAIR

    Instead of doing an explict index in aarch64-fusion-pairs.def, we
    should have an enum which does the index instead.  This allows
    you to add/remove them without worrying about the order being
    correct and having holes or worry about merge conficts.

    OK? Bootstrapped and tested on aarch64-linux-gnu with no regressions.

    ChangeLog:
    * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
    * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs_index): New enum.
    (aarch64_fusion_pairs): Base the shifted value on the index instead
    Rewrite AARCH64_FUSE_ALL to be based on the end index.
    of the argument to AARCH64_FUSION_PAIR.
    * config/aarch64/aarch64.c: Remove the last argument to AARCH64_FUSION_PAIR.

From-SVN: r227094
gcc/ChangeLog
gcc/config/aarch64/aarch64-fusion-pairs.def
gcc/config/aarch64/aarch64-protos.h
gcc/config/aarch64/aarch64.c
gcc/config/aarch64/thunderx.md