[PATCH v5] build: reduce use of AVX compiler flags

Thomas Monjalon thomas at monjalon.net
Fri Jun 27 12:11:40 CEST 2025


> > When doing a build for a target that already has the instruction sets for
> > AVX2/AVX512 enabled, skip emitting the AVX compiler flags, or the
> > x86-64-v4 '-march' flags, as they are unnecessary. Instead, when the default flags
> > produce the desired output, just use them unmodified, and don't bother adding in
> > extra enabling flags for AVX2 or AVX-512.
> >
> > Depends-on: series-35421 ("doc/linux_gsg: update recommended compiler
> > versions")
> >
> > Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> 
> Acked-by: Vipin Varghese <vipin.varghese at amd.com>

Applied, thanks.




More information about the dev mailing list