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]

rtx_costs as a target hook


Incorporates the CONST_COSTS, RTX_COSTS, DEFAULT_RTX_COSTS macros.

There appears to be a disconnect between different implementations.
In particular, a few take care to be able to evaluate the cost for
arbitrary rtx, while most only handle valid instructions.  I've not
yet looked to see how this winds up being used in practice, but I
suspect that most of the implementations are buggy.  I didn't change
any of the implementations one way or another.

Built cc1 on one of each; bootstraped i686-linux.


r~

Attachment: d-rtx-costs.cl
Description: Text document

Attachment: d-rtx-costs.gz
Description: GNU Zip compressed data


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