[AArch64 costs 4/18] Better estimate cost of building a constant 68/41168/1
authorjgreenhalgh <jgreenhalgh@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 May 2014 08:47:59 +0000 (08:47 +0000)
committerNikolai Bozhenov <n.bozhenov@samsung.com>
Thu, 11 Jun 2015 11:06:05 +0000 (14:06 +0300)
commit912fc3e8c1ba44f4359c2fc40750018632347489
treecf080b48153edcfabf78aead67d1f02668e83435
parent07feae7767448043248726ffdd24791d5d01ab6d
[AArch64 costs 4/18] Better estimate cost of building a constant

git cherry-pick 3967ee6

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.

Change-Id: I3396ecbe27c44603b350efa56021c49373da0e76
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210496 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/aarch64/aarch64.c