diff options
author | Jan Hubicka <jh@suse.cz> | 2002-04-29 13:39:31 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2002-04-29 11:39:31 +0000 |
commit | 2c4b77f3ee2f8cf1dfd584a111a15b11fc078bd8 (patch) | |
tree | 8a147818380183ada9682fd45209c90c41cf5d0b /gcc/doc/invoke.texi | |
parent | 3de72741b9dd8dceb843d60a16adaadad8e43957 (diff) | |
download | gcc-2c4b77f3ee2f8cf1dfd584a111a15b11fc078bd8.zip gcc-2c4b77f3ee2f8cf1dfd584a111a15b11fc078bd8.tar.gz gcc-2c4b77f3ee2f8cf1dfd584a111a15b11fc078bd8.tar.bz2 |
toplev.c (flag_if_conversion, [...]): New static variables.
* toplev.c (flag_if_conversion, flag_if_conversion2): New static
variables.
(lang_independent_options): Add -fif-conversion, -fif-conversion2
(rest_of_compilation): Do if conversion only when asked for.
(parse_options_and_default_flags): Set new variables to 1 for -O1
* invoke.texi (-fif-conversion, -fif-conversion2): Document.
From-SVN: r52891
Diffstat (limited to 'gcc/doc/invoke.texi')
-rw-r--r-- | gcc/doc/invoke.texi | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index be361e5..6bfe7df 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -267,6 +267,7 @@ in the following sections. -fexpensive-optimizations -ffast-math -ffloat-store @gol -fforce-addr -fforce-mem -ffunction-sections @gol -fgcse -fgcse-lm -fgcse-sm -floop-optimize -fcrossjumping @gol +-fif-conversion -fif-conversion2 @gol -finline-functions -finline-limit=@var{n} -fkeep-inline-functions @gol -fkeep-static-consts -fmerge-constants -fmerge-all-constants @gol -fmove-all-movables -fno-default-inline -fno-defer-pop @gol @@ -3522,6 +3523,18 @@ well. Perform cross-jumping transformation. This transformation unifies equivalent code and save code size. The resulting code may or may not perform better than without cross-jumping. +@item -fif-conversion +@opindex if-conversion +Attempt to transform conditional jumps into branch-less equivalents. This +include use of conditional moves, min, max, set flags and abs instructions, and +some tricks doable by standard arithmetics. The use of conditional execution +on chips where it is available is controlled by @code{if-conversion2}. + +@item -fif-conversion2 +@opindex if-conversion2 +Use conditional execution (where available) to transform conditional jumps into +branch-less equivalents. + @item -fdelete-null-pointer-checks @opindex fdelete-null-pointer-checks Use global dataflow analysis to identify and eliminate useless checks |