* lto-partition.c: Include sreal.h
commit27f5053bc08e0b5bb5204bb3597964c2984ccab0
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 29 Apr 2018 16:22:35 +0000 (29 16:22 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 29 Apr 2018 16:22:35 +0000 (29 16:22 +0000)
tree4ef395f7c7fcc0cdec6de1769e85c3c9e7f4f407
parent0649f97cd197ae1962cda3346c368c383ffab2b0
* lto-partition.c: Include sreal.h
(add_symbol_to_partition_1): Use size instead of self_size
for size estimate.
(account_reference_p): New.
(lto_balanced_map): Use 64bit arithmetics for size calculatoins; cleanup;
fix accounting errors in boundary size; add debug output; combine cost
as cost/size instead of cost/internal; reduce the partitioning error to
+- 1/8 of the parttion size.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259749 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/lto/ChangeLog
gcc/lto/lto-partition.c