]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ipa-fnsummary.cc
PR ipa/91089 - Setup predicate for switch default case in IPA
authorFeng Xue <fxue@os.amperecomputing.com>
Tue, 17 Sep 2019 12:30:08 +0000 (12:30 +0000)
committerFeng Xue <fxue@gcc.gnu.org>
Tue, 17 Sep 2019 12:30:08 +0000 (12:30 +0000)
commit351e7c3b5fbd45bde3efb601f7fee9a31c4f2063
treea8c77dee290a445c6d2f16f5b66fa8ea260824b0
parentc4ccdc0e63150d1cab2686a16dafeb7520315cb2
PR ipa/91089 - Setup predicate for switch default case in IPA

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

        PR ipa/91089
        * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
        option.
        * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
        * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
        for switch default case using range analysis information.

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

        PR ipa/91089
        * gcc.dg/ipa/pr91089.c: New test.

From-SVN: r275802
gcc/ChangeLog
gcc/doc/invoke.texi
gcc/ipa-fnsummary.c
gcc/params.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr91089.c [new file with mode: 0644]