[gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Document optimization parameter riscv-strcmp-inline-limit

Jeff Law law@gcc.gnu.org
Mon Dec 4 22:47:11 GMT 2023


https://gcc.gnu.org/g:bc06d87e53ed3ea8fa07c226dd4ad8eddb6ecc18

commit bc06d87e53ed3ea8fa07c226dd4ad8eddb6ecc18
Author: Christoph Müllner <christoph.muellner@vrull.eu>
Date:   Sat Dec 2 21:56:57 2023 +0100

    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>
    (cherry picked from commit 82576a6e77e0a284975dda87efe4b2d5bc5b9b1c)

Diff:
---
 gcc/doc/invoke.texi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 0d2b716739b..6abf15f7350 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -29065,6 +29065,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
@@ -29073,6 +29077,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


More information about the Gcc-cvs mailing list