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]

[Patch] rtx_cost of SUBREG


In the function rtx_cost in rtlanal.c, a SUBREG is made expensive
when the modes cannot be tied. Otherwise, the default cost of 
COSTS_N_INSNS(1) is assigned. 
However, I think that in the latter case the cost of a SUBREG 
should be 0, since no real operation is required. 
So I propose the following change:

2005-01-14  Mark Dettinger  <dettinge@de.ibm.com>

        * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
          when modes are tieable.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Attachment: rtlanal.c.diff
Description: rtlanal.c.diff


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