This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] rtx_cost of SUBREG


On Fri, 14 Jan 2005, Mark Dettinger wrote:
> 2005-01-14  Mark Dettinger  <dettinge@de.ibm.com>
>
>         * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
>           when modes are tieable.

This looks reasonable to me.  If nobody objects in the next day
or two, feel free to go ahead and commit this to mainline.

For 4.1, I think the code in rtx_cost should be reorganized to allow
the backend's targetm.rtx_costs to override the default values of
REG and SUBREG, by merging the two "switch" statements in that
function, and always calling the target hook afterwards.

Roger
--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]