aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/invoke.texi
diff options
context:
space:
mode:
authorFeng Xue <fxue@os.amperecomputing.com>2019-09-17 12:30:08 +0000
committerFeng Xue <fxue@gcc.gnu.org>2019-09-17 12:30:08 +0000
commit351e7c3b5fbd45bde3efb601f7fee9a31c4f2063 (patch)
treea8c77dee290a445c6d2f16f5b66fa8ea260824b0 /gcc/doc/invoke.texi
parentc4ccdc0e63150d1cab2686a16dafeb7520315cb2 (diff)
downloadgcc-351e7c3b5fbd45bde3efb601f7fee9a31c4f2063.zip
gcc-351e7c3b5fbd45bde3efb601f7fee9a31c4f2063.tar.gz
gcc-351e7c3b5fbd45bde3efb601f7fee9a31c4f2063.tar.bz2
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
Diffstat (limited to 'gcc/doc/invoke.texi')
-rw-r--r--gcc/doc/invoke.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index fe5cf35..0e36935 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -11937,6 +11937,12 @@ not spend too much time analyzing huge functions, it gives up and
consider all memory clobbered after examining
@option{ipa-max-aa-steps} statements modifying memory.
+@item ipa-max-switch-predicate-bounds
+Maximal number of boundary endpoints of case ranges of switch statement.
+For switch exceeding this limit, IPA-CP will not construct cloning cost
+predicate, which is used to estimate cloning benefit, for default case
+of the switch statement.
+
@item lto-partitions
Specify desired number of partitions produced during WHOPR compilation.
The number of partitions should exceed the number of CPUs used for compilation.