This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/80929] [7/8 Regression] Division with constant no more optimized to mult highpart
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Jul 2017 09:07:12 +0000
- Subject: [Bug middle-end/80929] [7/8 Regression] Division with constant no more optimized to mult highpart
- Auto-submitted: auto-generated
- References: <bug-80929-4@http.gcc.gnu.org/bugzilla/>
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