diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-30 19:25:49 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-30 19:25:49 +0000 |
commit | c7b4d9b2f01b8cf46a73a12fe5b67a9c947f71f8 (patch) | |
tree | 7bba91477b083c590808e6d2b1df353f8eabf850 /gcc/doc | |
parent | 7d3126c95f9915410f1ea929356482696cec6b80 (diff) | |
download | gcc-c7b4d9b2f01b8cf46a73a12fe5b67a9c947f71f8.tar.gz |
PR rtl-optimization/38449:
* hooks.c (hook_bool_const_rtx_const_rtx_true): New function.
* hooks.h (hook_bool_const_rtx_const_rtx_true): Declare.
* target.def: Merge in definitions and documentation for
TARGET_CAN_FOLLOW_JUMP.
* doc/tm.texi.in: Add documentation locations for the above.
* doc/tm.texi: Regenerate.
* reorg.c (follow_jumps): New parameters jump and crossing.
Changed all callers.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191878 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/tm.texi | 4 | ||||
-rw-r--r-- | gcc/doc/tm.texi.in | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index a14a4fc9a88..b36c764a3b5 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -10958,6 +10958,10 @@ filling of delay slots can result in branches being redirected, and this may in turn cause a branch offset to overflow. @end defmac +@deftypefn {Target Hook} bool TARGET_CAN_FOLLOW_JUMP (const_rtx @var{follower}, const_rtx @var{followee}) +FOLLOWER and FOLLOWEE are JUMP_INSN instructions; return true if FOLLOWER may be modified to follow FOLLOWEE; false, if it can't. For example, on some targets, certain kinds of branches can't be made to follow through a hot/cold partitioning. +@end deftypefn + @deftypefn {Target Hook} bool TARGET_COMMUTATIVE_P (const_rtx @var{x}, int @var{outer_code}) This target hook returns @code{true} if @var{x} is considered to be commutative. Usually, this is just COMMUTATIVE_P (@var{x}), but the HP PA doesn't consider diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index a85fee1b4a1..4858d97e27f 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -10814,6 +10814,8 @@ filling of delay slots can result in branches being redirected, and this may in turn cause a branch offset to overflow. @end defmac +@hook TARGET_CAN_FOLLOW_JUMP + @hook TARGET_COMMUTATIVE_P This target hook returns @code{true} if @var{x} is considered to be commutative. Usually, this is just COMMUTATIVE_P (@var{x}), but the HP PA doesn't consider |