Re: XMM/YMM assembly bloat

2023-02-14 Thread Andrew Pinski via Gcc-bugs
On Tue, Feb 14, 2023 at 2:14 PM Owen Cook via Gcc-bugs wrote: > > Adding white space/newlines outside the function also affect the length of > assembly. Note -march=native is dependent on the machine which is being used. IIRC godbolt uses a few different machines and that means the answer which -

Re: XMM/YMM assembly bloat

2023-02-14 Thread Owen Cook via Gcc-bugs
Adding white space/newlines outside the function also affect the length of assembly. On Tue, Feb 14, 2023 at 5:09 PM Owen Cook wrote: > Within "unrollOptimizations.c" compiled on a Ryzen 5 2600 using x86-64 gcc > 12.2 "-O2 -march=native" gives vastly different assembler results given > some scop

XMM/YMM assembly bloat

2023-02-14 Thread Owen Cook via Gcc-bugs
Within "unrollOptimizations.c" compiled on a Ryzen 5 2600 using x86-64 gcc 12.2 "-O2 -march=native" gives vastly different assembler results given some scope things I have found. If the for loop iterator name is both int i in each loop, gcc seemingly spreads arrayA and arrayB into one single XMM re