[AArch64 costs 6/18] Set default costs and handle vector modes.

James Greenhalgh james.greenhalgh@arm.com
Thu Mar 27 17:35:00 GMT 2014


Hi,

The GCC rtx_costs function will try to be helpful by setting the
cost of a multiply to something very high.  As this is unlikely
to be appropriate we want to overwrite these costs as soon as
possible.

We start with the assumption that everything will be as expensive
as the cheapest instruction.

Additionally, we do a terrible job of costing vector operations,
and we really shouldn't pretend that any of the code in this function
will make the right decision when faced with a vector. So we take
the simplifying view that all vector operations are basically the
same. This will not give a good costing function, and there is
scope for improvement in future. Just trying to cost the
element-function is unlikely to be appropriate, it would imply an ADD
and a vector ADD were equally expensive.

Tested in series on aarch64-none-elf.

OK for stage 1?

Thanks,
James

---
2014-03-27  James Greenhalgh  <james.greenhalgh@arm.com>

	* config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-AArch64-costs-6-18-Set-default-costs-and-handle-vect.patch
Type: text/x-patch
Size: 861 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140327/1f60a37a/attachment.bin>


More information about the Gcc-patches mailing list