Only transform rotate to rotatert and v.v. if target has both
commit9da3143a3710388809cec3b2b2d959a44872ea60
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Jul 2014 20:19:19 +0000 (2 20:19 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Jul 2014 20:19:19 +0000 (2 20:19 +0000)
tree55483e0c6041d55004fd9e1326e9f7d35571d985
parentb6cfb856fce3df33eae001ac9fbbde7ae7d5fe5c
Only transform rotate to rotatert and v.v. if target has both

Many targets do not have both rotate and rotatert.  Of the 47 targets
in the tree, 17 have both, 9 have only rotate, 2 have only rotatert, and
19 have neither (this is based on "grep -wil" so it can be slightly off).

rs6000 has only rotate, and mips has only rotatert.  For such targets
simplifying rotate to rotatert and vice versa is not simplifying things
at all.  rs6000 has already way too many rotate patterns (some days it
seems like two thousand, but it is somewhat less in reality still); I
would prefer not to double that again.

So, this patch makes genrecog define HAVE_rotate and HAVE_rotatert if
those RTL codes are mentioned anywhere in the machine description, and
then does the transformation in simplify-rtx.c only if both these flags
are set.

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