]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Document optimization parameter riscv-strcmp-inline-limit
authorChristoph Müllner <christoph.muellner@vrull.eu>
Sat, 2 Dec 2023 20:56:57 +0000 (21:56 +0100)
committerChristoph Müllner <christoph.muellner@vrull.eu>
Mon, 4 Dec 2023 13:56:14 +0000 (14:56 +0100)
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>
gcc/doc/invoke.texi

index 6fe63b5f99916b55b75f4cf0c7cba5c4050f7136..2b51ff304f6cd57add13c8e58cd5d26b6e3d7ff8 100644 (file)
@@ -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