This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/54089] [SH] Refactor shift patterns
- From: "olegendo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 27 Jul 2012 17:36:30 +0000
- Subject: [Bug target/54089] [SH] Refactor shift patterns
- Auto-submitted: auto-generated
- References: <bug-54089-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54089
--- Comment #2 from Oleg Endo <olegendo at gcc dot gnu.org> 2012-07-27 17:36:30 UTC ---
Author: olegendo
Date: Fri Jul 27 17:36:20 2012
New Revision: 189917
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189917
Log:
PR target/54089
* config/sh/sh.c (shiftcosts): Remove case where first operand
is a const_int. Move COSTS_N_INSNS usage into caller ...
(sh_rtx_costs) ... here. Return false when shiftcosts cannot be
calculated instead of MAX_COST.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/sh/sh.c