diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2019-11-16 10:51:09 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2019-11-16 09:51:09 +0000 |
commit | 23ff8c05804c2d3fc6e9179d2e9c2940ae53d592 (patch) | |
tree | eb076794121af38d2f19d07062e9a403f264d6e2 /gcc/ipa-inline-analysis.c | |
parent | 6d1402f0edf15480a1eb37141bc165cab5bca508 (diff) | |
download | gcc-23ff8c05804c2d3fc6e9179d2e9c2940ae53d592.zip gcc-23ff8c05804c2d3fc6e9179d2e9c2940ae53d592.tar.gz gcc-23ff8c05804c2d3fc6e9179d2e9c2940ae53d592.tar.bz2 |
Fix nonspec_time when there is no cached value.
* ipa-inline.h (do_estimate_edge_time): Add nonspec_time
parameter.
(estimate_edge_time): Use it.
* ipa-inline-analysis.c (do_estimate_edge_time): Add
ret_nonspec_time parameter.
From-SVN: r278333
Diffstat (limited to 'gcc/ipa-inline-analysis.c')
-rw-r--r-- | gcc/ipa-inline-analysis.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c index 1e124fd..d550d30 100644 --- a/gcc/ipa-inline-analysis.c +++ b/gcc/ipa-inline-analysis.c @@ -179,7 +179,7 @@ simple_edge_hints (struct cgraph_edge *edge) size, since we always need both metrics eventually. */ sreal -do_estimate_edge_time (struct cgraph_edge *edge) +do_estimate_edge_time (struct cgraph_edge *edge, sreal *ret_nonspec_time) { sreal time, nonspec_time; int size; @@ -275,6 +275,8 @@ do_estimate_edge_time (struct cgraph_edge *edge) hints |= simple_edge_hints (edge); entry->hints = hints + 1; } + if (ret_nonspec_time) + *ret_nonspec_time = nonspec_time; return time; } |