re PR middle-end/18293 (Redundant copy operation introduced by expand)
authorRoger Sayle <roger@eyesopen.com>
Wed, 8 Dec 2004 02:15:36 +0000 (02:15 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Wed, 8 Dec 2004 02:15:36 +0000 (02:15 +0000)
commit58b42e19f7b39f55069798d8b4b834ba680fc22d
tree7d6bf1e1b40a2f41f7cb8871232be4ed7ebe2012
parentb16bcb178a4671d33cc6a8f82e93b93518230cf3
re PR middle-end/18293 (Redundant copy operation introduced by expand)

PR middle-end/18293
* expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Move definition earlier.
(expand_mult): Special case powers of two to avoid synth_mult.
* loop.c (product_cheap_p): Handle case where expand_mult does
require/generate any instructions (i.e. multiplication by zero).

From-SVN: r91851
gcc/ChangeLog
gcc/expmed.c
gcc/loop.c