public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/112537] New: Is there a way to disable cpymem pass for rvv
@ 2023-11-15  3:07 fanghuaqi at vip dot qq.com
  2023-11-15  3:13 ` [Bug target/112537] " pinskia at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: fanghuaqi at vip dot qq.com @ 2023-11-15  3:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112537

            Bug ID: 112537
           Summary: Is there a way to disable cpymem pass for rvv
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fanghuaqi at vip dot qq.com
  Target Milestone: ---

See
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-2.c;h=7b706b6ef52544cabdce2007256c9e67b72ccd79;hb=9464e72bcc9123b619215af8cfef491772a3ebd9
this case, if I pass -march=rv64imafdcv to compile code like this, it will
generate vector related code, which I think it should only be enabled when
--param=riscv-autovec-preference=scalable is enabled, but actually it is auto
enable d even I pass  --param=riscv-autovec-preference=none, see
https://godbolt.org/z/TazWKEjzM

Is there a way to disable it, since if vector load and store for smaller
structure assign is costable and harmfull to cpu pipeline.

Thanks

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-11-20  2:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-15  3:07 [Bug c/112537] New: Is there a way to disable cpymem pass for rvv fanghuaqi at vip dot qq.com
2023-11-15  3:13 ` [Bug target/112537] " pinskia at gcc dot gnu.org
2023-11-15  4:45 ` juzhe.zhong at rivai dot ai
2023-11-15  5:03 ` fanghuaqi at vip dot qq.com
2023-11-15  5:05 ` juzhe.zhong at rivai dot ai
2023-11-15  5:14 ` fanghuaqi at vip dot qq.com
2023-11-15  5:17 ` juzhe.zhong at rivai dot ai
2023-11-15  5:53 ` pinskia at gcc dot gnu.org
2023-11-15  6:42 ` kito at gcc dot gnu.org
2023-11-15  6:44 ` juzhe.zhong at rivai dot ai
2023-11-15  7:12 ` juzhe.zhong at rivai dot ai
2023-11-15  7:34 ` kito at gcc dot gnu.org
2023-11-17 13:23 ` amylaar at gcc dot gnu.org
2023-11-17 13:27 ` amylaar at gcc dot gnu.org
2023-11-20  2:50 ` cvs-commit at gcc dot gnu.org

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).