ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
authorJan Hubicka <hubicka@ucw.cz>
Mon, 2 May 2016 16:55:56 +0000 (18:55 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 2 May 2016 16:55:56 +0000 (16:55 +0000)
commit818b88a7a1be36183bc4bbc24535329389d6178e
tree0c1f84b05ac0062b33430a17eb812449e210f06b
parentdd77684f05433afcba15743ba1e2445804f9ac9f
ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions

* ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
(dump_inline_summary): Dump it.
(fp_expression_p): New predicate.
(estimate_function_body_sizes): Use it.
(inline_merge_summary): Merge fp_expressions.
(inline_read_section): Read fp_expressions.
(inline_write_summary): Write fp_expressions.
* ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
codegen boundary if either caller or callee is !fp_expressions.
* ipa-inline.h (inline_summary): Add fp_expressions.
* ipa-inline-transform.c (inline_call): When inlining !fp_expressions
to fp_expressions be sure the fp generation flags are updated.

* gcc.dg/ipa/inline-8.c: New testcase.

From-SVN: r235766
gcc/ChangeLog
gcc/ipa-inline-analysis.c
gcc/ipa-inline-transform.c
gcc/ipa-inline.c
gcc/ipa-inline.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/inline-8.c [new file with mode: 0644]