lto-partition.c: Include sreal.h
authorJan Hubicka <jh@suse.cz>
Sun, 29 Apr 2018 16:22:35 +0000 (18:22 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 29 Apr 2018 16:22:35 +0000 (16:22 +0000)
commitddb0b8247df6b9192a849508fab2aecc49d8312c
tree4ef395f7c7fcc0cdec6de1769e85c3c9e7f4f407
parent8d70b61edda10e97686da47decfc7f93ff0bc7c9
lto-partition.c: Include sreal.h

* 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.

From-SVN: r259749
gcc/lto/ChangeLog
gcc/lto/lto-partition.c