re PR rtl-optimization/53176 (gcc.dg/lower-subreg-1.c FAILs)
authorHans-Peter Nilsson <hp@axis.com>
Thu, 12 Jul 2012 21:14:14 +0000 (21:14 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Thu, 12 Jul 2012 21:14:14 +0000 (21:14 +0000)
commite098c1696289d3d935d13ebed803c5b32045ba6d
treedc588155e6de500b6c1e343812291707762bbd90
parent8c15b4b04f81d00c916aeb7a5ba186722d4a4b2d
re PR rtl-optimization/53176 (gcc.dg/lower-subreg-1.c FAILs)

PR rtl-optimization/53176
* rtlanal.c (rtx_cost): Adjust default cost for X with a
UNITS_PER_WORD factor for all X according to the size of
its mode, not just for SUBREGs with untieable modes.
Handle SET.  Use factor * factor for MULT, DIV, UDIV,
MOD, UMOD.

From-SVN: r189441
gcc/ChangeLog
gcc/rtlanal.c