PR middle-end/18293
commit7a9e3364f6d46f2e5d57455cdd2aed10df3bf5f7
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Dec 2004 02:15:36 +0000 (8 02:15 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Dec 2004 02:15:36 +0000 (8 02:15 +0000)
tree7d6bf1e1b40a2f41f7cb8871232be4ed7ebe2012
parent9b1a61809f88c04374f27ddb7b611eb68d661538
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).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91851 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/expmed.c
gcc/loop.c