[Bug middle-end/80929] [7/8 Regression] Division with constant no more optimized to mult highpart

gjl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jul 17 08:56:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80929

--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Mon Jul 17 08:56:06 2017
New Revision: 250258

URL: https://gcc.gnu.org/viewcvs?rev=250258&root=gcc&view=rev
Log:
        PR 80929
        * config/avr/avr.c (avr_mul_highpart_cost): New static function.
        (avr_rtx_costs_1) [TRUNCATE]: Use it to compute mul_highpart cost.
        [LSHIFTRT, outer_code = TRUNCATE]: Same.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/avr/avr.c


More information about the Gcc-bugs mailing list