9e11ceef165bc074c2fc85b8ddece606b24e710b
This allows loop unswitching to unswitch outer loops conditions are invariant in. We restrict ourselves to unswitch conditions in innermost loops and will only unswitch loop nests that do not contain any sibling loops. To simplify the implementation the loop nest unswitched is the deepest all unswitching candidates are invariant in. For 507.cactuBSSN_r it can be observed we unswitch the outer loops of the compute kernels for the fdOrder parameter. It seems to be within the existing growth limitations to perform the unswitchings, a performance benefit is not seen. * tree-ssa-loop-unswitch.cc (init_loop_unswitch_info): First collect candidates and determine the outermost loop to unswitch. (tree_ssa_unswitch_loops): First perform all guard hoisting, then perform unswitching on innermost loop predicates. (find_unswitching_predicates_for_bb): Keep track of the outermost loop to unswitch. (evaluate_bbs): Adjust exit test. (tree_unswitch_single_loop): Dump whether we unswitched an outer loop. (tree_unswitch_loop): Remove assert we unswitch only innermost loops. * gcc.dg/loop-unswitch-18.c: New testcase. * gcc.dg/tree-ssa/loopclosedphi.c: Disable unswitching, adjust expected counts. * gcc.dg/torture/pr71462.c: Add -w to ignore undefined behavior diagnostics after now unswitching outer loops.
…
…
…
…
…
…
…
…
…
…
…
This directory contains the GNU Compiler Collection (GCC). The GNU Compiler Collection is free software. See the files whose names start with COPYING for copying permission. The manuals, and some of the runtime libraries, are under different terms; see the individual source files for details. The directory INSTALL contains copies of the installation information as HTML and plain text. The source of this information is gcc/doc/install.texi. The installation information includes details of what is included in the GCC sources and what files GCC installs. See the file gcc/doc/gcc.texi (together with other files that it includes) for usage and porting information. An online readable version of the manual is in the files gcc/doc/gcc.info*. See http://gcc.gnu.org/bugs/ for how to report bugs usefully. Copyright years on GCC source files may be listed using range notation, e.g., 1987-2012, indicating that every year in the range, inclusive, is a copyrightable year that could otherwise be listed individually.
Description
Languages
C++
33%
C
27.4%
Ada
13%
Go
7.1%
D
7%
Other
12.1%