Remove index from AARCH64_FUSION_PAIR
commita3541110ff927a68275727e10b19eb9e594450b0
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 Aug 2015 06:49:32 +0000 (22 06:49 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 Aug 2015 06:49:32 +0000 (22 06:49 +0000)
treefb86169043472e7715185405e9863a5257a048b2
parent13a19553d3dd1715c55c3940a7d15485a2b1a112
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227094 138bc75d-0d04-0410-961f-82ee72b054a4
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