Use post-dom info to update if/switch predicate
authorFeng Xue <fxue@gcc.gnu.org>
Thu, 19 Sep 2019 14:16:01 +0000 (14:16 +0000)
committerFeng Xue <fxue@gcc.gnu.org>
Thu, 19 Sep 2019 14:16:01 +0000 (14:16 +0000)
commitefe126563bb8d28cb3958423a735d0021e75702f
tree4b84282f7c918cd7fd020036d4a789c154be8d0d
parentc449d3ae28ff4e133114fb67dbf7dcc7a95ca5d5
Use post-dom info to update if/switch predicate

2019-09-19  Feng Xue  <fxue@os.amperecomputing.com>

        * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
        trivial predicate for condition branch.
        (set_switch_stmt_execution_predicate): Do not compute trivial predicate
        for switch case.
        (compute_bb_predicates): Update predicate based on post-dominating
        relationship.
        (analyze_function_body): Calculate post-dominating information.

2019-09-19  Feng Xue  <fxue@os.amperecomputing.com>

        * gcc.dg/ipa/pr91089.c: Add a new function and pattern.

From-SVN: r275963
gcc/ChangeLog
gcc/ipa-fnsummary.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr91089.c