expmed.c (choose_mult_variant, [...]): New, split from...
authorRichard Sandiford <rsandifo@redhat.com>
Fri, 19 Mar 2004 09:59:00 +0000 (09:59 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 19 Mar 2004 09:59:00 +0000 (09:59 +0000)
commit8efc8980df50d002cc55d53f5fbfe4f04aeeaaaf
treead576e9549b11010530d0d219800ac5cce072fb5
parentd36d56001a298d89b6d69750cb6dfee4653aa2b8
expmed.c (choose_mult_variant, [...]): New, split from...

* expmed.c (choose_mult_variant, expand_mult_const): New, split from...
(expand_mult): ...here.
(extract_high_half): New, split out from expand_mult_highpart.
(expand_highpart_optab): Likewise.  Don't clobber target prematurely.
(expand_highpart): Evaluate the cost of a shift/add sequence,
then see if any of the specialized optabs are cheaper.

From-SVN: r79673
gcc/ChangeLog
gcc/expmed.c