]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use post-dom info to update if/switch predicate
authorfxue <fxue@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Sep 2019 14:16:01 +0000 (14:16 +0000)
committerfxue <fxue@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Sep 2019 14:16:01 +0000 (14:16 +0000)
commitc23b675c6e91952afe2111d7097d7c85e10ea7fb
tree4b84282f7c918cd7fd020036d4a789c154be8d0d
parent48e1ffaff9b709503b1eb7e15a46564a86d303dd
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@275963 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ipa-fnsummary.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr91089.c