From: Razya Ladelsky Date: Mon, 3 Dec 2007 11:16:36 +0000 (+0000) Subject: invoke.texi (fipa-cp, [...]): Add documentation. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa1a4968d3c6b9889cd601cad404e97a7ad2b38a;p=gcc.git invoke.texi (fipa-cp, [...]): Add documentation. 2007-12-03 Razya Ladelsky * doc/invoke.texi (fipa-cp, fipa-matrix-reorg): Add documentation. From-SVN: r130580 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 67428d37ed3..102f980d69f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-12-03 Razya Ladelsky + + * doc/invoke.texi (fipa-cp, fipa-matrix-reorg): Add documentation. + + 2007-12-03 Jakub Jelinek PR middle-end/34317 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 9fe5fde0f29..c8a97f46473 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -328,7 +328,8 @@ Objective-C and Objective-C++ Dialects}. -ffunction-sections -fgcse -fgcse-after-reload -fgcse-las -fgcse-lm @gol -fgcse-sm -fif-conversion -fif-conversion2 -finline-functions @gol -finline-functions-called-once -finline-limit=@var{n} @gol --finline-small-functions -fipa-pta -fipa-pure-const -fipa-reference @gol +-finline-small-functions -fipa-cp -fipa-marix-reorg -fipa-pta @gol +-fipa-pure-const -fipa-reference @gol -fipa-type-escape -fivopts -fkeep-inline-functions -fkeep-static-consts @gol -fmerge-all-constants -fmerge-constants -fmodulo-sched @gol -fmodulo-sched-allow-regmoves -fmove-loop-invariants -fmudflap @gol @@ -5715,6 +5716,29 @@ Enabled by default at @option{-O} and higher. @opindex fipa-pta Perform interprocedural pointer analysis. +@item -fipa-cp +@opindex fipa-cp +Perform interprocedural constant propagation. +This optimization analyzes the program to determine when values passed +to functions are constants and then optimizes accordingly. +This optimization can substantially increase performance +if the application has constants passed to functions, but +because this optimization can create multiple copies of functions, +it may significantly increase code size. + +@item -fipa-matrix-reorg +@opindex fipa-matrix-reorg +Perform matrix flattening and transposing. +Matrix flattening tries to replace a m-dimensional matrix +with its equivalent n-dimensional matrix, where n < m. +This reduces the level of indirection needed for accessing the elements +of the matrix. The second optimization is matrix transposing that +attemps to change the order of the matrix's dimensions in order to +improve cache locality. +Both optimizations need fwhole-program flag. +Transposing is enabled only if profiling information is avaliable. + + @item -ftree-sink @opindex ftree-sink Perform forward store motion on trees. This flag is