Commit 92f87f08 by Martin Sebor Committed by Martin Sebor

PR rtl-optimization/19705 - -fno-branch-count-reg doesn't prevent decrement

PR rtl-optimization/19705 - -fno-branch-count-reg doesn't prevent decrement
	and branch instructions on a count register

gcc/ChangeLog:
2016-03-07  Martin Sebor  <msebor@redhat.com>

	PR rtl-optimization/19705
	* doc/invoke.texi (Options That Control Optimization): Clarify
	-fno-branch-count-reg.

From-SVN: r234039
parent dbb23418
2016-03-07 Martin Sebor <msebor@redhat.com>
PR rtl-optimization/19705
* doc/invoke.texi (Options That Control Optimization): Clarify
-fno-branch-count-reg.
2016-02-26 Richard Biener <rguenther@suse.de> 2016-02-26 Richard Biener <rguenther@suse.de>
Jeff Law <law@redhat.com> Jeff Law <law@redhat.com>
......
...@@ -6541,11 +6541,14 @@ life-range analysis. This option is effective only with ...@@ -6541,11 +6541,14 @@ life-range analysis. This option is effective only with
@item -fno-branch-count-reg @item -fno-branch-count-reg
@opindex fno-branch-count-reg @opindex fno-branch-count-reg
Do not use ``decrement and branch'' instructions on a count register, Avoid running a pass scanning for opportunities to use ``decrement and
but instead generate a sequence of instructions that decrement a branch'' instructions on a count register instead of generating sequences
register, compare it against zero, then branch based upon the result. of instructions that decrement a register, compare it against zero, and
This option is only meaningful on architectures that support such then branch based upon the result. This option is only meaningful on
instructions, which include x86, PowerPC, IA-64 and S/390. architectures that support such instructions, which include x86, PowerPC,
IA-64 and S/390. Note that the @option{-fno-branch-count-reg} option
doesn't remove the decrement and branch instructions from the generated
instruction stream introduced by other optimization passes.
Enabled by default at @option{-O1} and higher. Enabled by default at @option{-O1} and higher.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment