[AArch64 costs 4/18] Better estimate cost of building a constant
authorJames Greenhalgh <james.greenhalgh@arm.com>
Fri, 16 May 2014 08:47:59 +0000 (08:47 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Fri, 16 May 2014 08:47:59 +0000 (08:47 +0000)
commit9dfc162c47a8485b032af6af78e3790940a9d210
tree64c86e2439dc7e841cbd6bc1e4bc11b7604381e5
parent0ee859b53ba2af19f58f9e58ab38da1a8a16b5d6
[AArch64 costs 4/18] Better estimate cost of building a constant

gcc/

* config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
emit instructions, return number of instructions which would
be emitted.
(aarch64_add_constant): Update call to aarch64_build_constant.
(aarch64_output_mi_thunk): Likewise.
(aarch64_rtx_costs): Estimate cost of a CONST_INT, cost
a CONST_DOUBLE.

Co-Authored-By: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
From-SVN: r210496
gcc/ChangeLog
gcc/config/aarch64/aarch64.c