aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorChristoph Müllner <christoph.muellner@vrull.eu>2023-12-02 21:56:57 +0100
committerChristoph Müllner <christoph.muellner@vrull.eu>2023-12-04 14:56:14 +0100
commit82576a6e77e0a284975dda87efe4b2d5bc5b9b1c (patch)
tree9735cdb5e5a696771383ccff6e4a1c80d32a9d8e /gcc/doc
parent018ba3ac952bed4ae01344c060360f13f7cc084a (diff)
downloadgcc-82576a6e77e0a284975dda87efe4b2d5bc5b9b1c.zip
gcc-82576a6e77e0a284975dda87efe4b2d5bc5b9b1c.tar.gz
gcc-82576a6e77e0a284975dda87efe4b2d5bc5b9b1c.tar.bz2
RISC-V: Document optimization parameter riscv-strcmp-inline-limit
This patch documents the optimization parameter riscv-strcmp-inline-limit, which can be used to tweak the behaviour of -minline-strcmp and -minline-strncmp. gcc/ChangeLog: PR target/112650 * doc/invoke.texi: Document riscv-strcmp-inline-limit. Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 6fe63b5..2b51ff3 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -29846,6 +29846,10 @@ Inlining will only be done if the strings are properly aligned
and instructions for accelerated processing are available.
The default is to not inline strcmp calls.
+The @option{--param riscv-strcmp-inline-limit=@var{n}} parameter controls
+the maximum number of bytes compared by the inlined code.
+The default value is 64.
+
@opindex minline-strncmp
@item -minline-strncmp
@itemx -mno-inline-strncmp
@@ -29854,6 +29858,10 @@ Inlining will only be done if the strings are properly aligned
and instructions for accelerated processing are available.
The default is to not inline strncmp calls.
+The @option{--param riscv-strcmp-inline-limit=@var{n}} parameter controls
+the maximum number of bytes compared by the inlined code.
+The default value is 64.
+
@opindex mshorten-memrefs
@item -mshorten-memrefs
@itemx -mno-shorten-memrefs