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

            Bug ID: 101197
           Summary: __builtin_memmove does not perform constant
                    optimizations
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: unlvsur at live dot com
  Target Milestone: ---

https://godbolt.org/z/qTMEo93j1

Two code does exactly the same thing but gcc refuses to optimize this.

While clang generates exactly the same output of assembly
https://godbolt.org/z/7a4r1hxj7

Reply via email to