[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 09:07:00 GMT 2017


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

--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Mon Jul 17 09:06:39 2017
New Revision: 250259

URL: https://gcc.gnu.org/viewcvs?rev=250259&root=gcc&view=rev
Log:
        Backport from 2017-07-17 trunk r250258.
        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:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/config/avr/avr.c


More information about the Gcc-bugs mailing list