public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-5434] RISC-V: Refine function args of some functions.
@ 2023-01-27 10:05 Kito Cheng
  0 siblings, 0 replies; only message in thread
From: Kito Cheng @ 2023-01-27 10:05 UTC (permalink / raw)
  To: gcc-cvs

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

commit r13-5434-ge577b91bbaa7075655de4da4b8af95216d8b1f6d
Author: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
Date:   Wed Jan 18 11:13:05 2023 +0800

    RISC-V: Refine function args of some functions.
    
    gcc/ChangeLog:
    
            * config/riscv/riscv-vsetvl.cc (gen_vsetvl_pat): Refine function args.
            (emit_vsetvl_insn): Ditto.

Diff:
---
 gcc/config/riscv/riscv-vsetvl.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/config/riscv/riscv-vsetvl.cc b/gcc/config/riscv/riscv-vsetvl.cc
index 8b3fd33f558..45e14d0ff03 100644
--- a/gcc/config/riscv/riscv-vsetvl.cc
+++ b/gcc/config/riscv/riscv-vsetvl.cc
@@ -579,7 +579,7 @@ has_vector_insn (function *fn)
 
 /* Emit vsetvl instruction.  */
 static rtx
-gen_vsetvl_pat (enum vsetvl_type insn_type, vl_vtype_info info, rtx vl)
+gen_vsetvl_pat (enum vsetvl_type insn_type, const vl_vtype_info &info, rtx vl)
 {
   rtx avl = info.get_avl ();
   rtx sew = gen_int_mode (info.get_sew (), Pmode);
@@ -599,7 +599,7 @@ gen_vsetvl_pat (enum vsetvl_type insn_type, vl_vtype_info info, rtx vl)
 }
 
 static rtx
-gen_vsetvl_pat (rtx_insn *rinsn, const vector_insn_info info)
+gen_vsetvl_pat (rtx_insn *rinsn, const vector_insn_info &info)
 {
   rtx new_pat;
   if (vsetvl_insn_p (rinsn) || vlmax_avl_p (info.get_avl ()))
@@ -616,7 +616,7 @@ gen_vsetvl_pat (rtx_insn *rinsn, const vector_insn_info info)
 
 static void
 emit_vsetvl_insn (enum vsetvl_type insn_type, enum emit_type emit_type,
-		  vl_vtype_info info, rtx vl, rtx_insn *rinsn)
+		  const vl_vtype_info &info, rtx vl, rtx_insn *rinsn)
 {
   rtx pat = gen_vsetvl_pat (insn_type, info, vl);
   if (dump_file)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-27 10:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-27 10:05 [gcc r13-5434] RISC-V: Refine function args of some functions Kito Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).