Support for value ranges in IPA predicates
authorJan Hubicka <hubicka@gcc.gnu.org>
Thu, 14 Nov 2019 12:41:55 +0000 (12:41 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 14 Nov 2019 12:41:55 +0000 (12:41 +0000)
commit68718e8e60209edc98771f54091d983eecd6f93c
tree70300f4db395bcfd44ad4749a8f9d8354827813e
parentafeb887562af17ea235fbec650ff6d16c412682a
Support for value ranges in IPA predicates

        * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
(ipa_value_range_from_jfunc): New function.
* ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
known_value_ranges parameter; use it to evalulate conditions.
(evaluate_properties_for_edge): Compute known value ranges.
(ipa_fn_summary_t::duplicate): Update use of
evaluate_conditions_for_known_args.
(estimate_ipcp_clone_size_and_time): Likewise.
(ipa_merge_fn_summary_after_inlining): Likewise.
* ipa-prop.h (ipa_value_range_from_jfunc): Declare.

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

From-SVN: r278220
gcc/ChangeLog
gcc/ipa-cp.c
gcc/ipa-fnsummary.c
gcc/ipa-inline.c
gcc/ipa-prop.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/inline-9.c [new file with mode: 0644]