From 82576a6e77e0a284975dda87efe4b2d5bc5b9b1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20M=C3=BCllner?= Date: Sat, 2 Dec 2023 21:56:57 +0100 Subject: RISC-V: Document optimization parameter riscv-strcmp-inline-limit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- gcc/doc/invoke.texi | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gcc') 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 -- cgit v1.1