Re: F41 Change Proposal - Python Built with gcc -03 (self-contained)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 12, 2024 at 07:08:36PM -0500, Neal Gompa wrote:
> I would like for us to consider evaluating a global change to -O3. I
> am not convinced that there's a good reason anymore to remain at -O2.

FYI here are the optimizations added by gcc -O3 (over -O2), from
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html

  -fgcse-after-reload
  -fipa-cp-clone
  -floop-interchange
  -floop-unroll-and-jam
  -fpeel-loops
  -fpredictive-commoning
  -fsplit-loops
  -fsplit-paths
  -ftree-loop-distribution
  -ftree-partial-pre
  -funswitch-loops
  -fvect-cost-model=dynamic
  -fversion-loops-for-strides

Mainly lots of loop optimizations :-)

For clang, -O3 is simply described as this, I can't immediately find
any more detail:

  -O3 Like -O2, except that it enables optimizations that take longer
  to perform or that may generate larger code (in an attempt to make
  the program run faster).

As gcc -Os was mentioned too, that is -O2 with the following
optimizations disabled:

  -falign-functions  -falign-jumps
  -falign-labels  -falign-loops
  -fprefetch-loop-arrays  -freorder-blocks-algorithm=stc

Clang just says:

  -Os Like -O2 with extra optimizations to reduce code size.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux