diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2012-09-30 19:25:49 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2012-09-30 20:25:49 +0100 |
commit | 4b4de898c94e678bbcfa677bbb524fc3bf33ed51 (patch) | |
tree | 7bba91477b083c590808e6d2b1df353f8eabf850 /gcc/hooks.c | |
parent | f84992b0011db09edf7efabf6750ea4ac77df441 (diff) | |
download | gcc-4b4de898c94e678bbcfa677bbb524fc3bf33ed51.tar.gz |
re PR rtl-optimization/38449 (delay branch scheduling follows REG_CROSSING_JUMP jumps indiscriminately)
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.
From-SVN: r191878
Diffstat (limited to 'gcc/hooks.c')
-rw-r--r-- | gcc/hooks.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/hooks.c b/gcc/hooks.c index 775da3c3d2f..b26252203f7 100644 --- a/gcc/hooks.c +++ b/gcc/hooks.c @@ -117,6 +117,14 @@ hook_bool_mode_rtx_true (enum machine_mode mode ATTRIBUTE_UNUSED, return true; } +/* Generic hook that takes (rtx, rtx) and returns true. */ +bool +hook_bool_const_rtx_const_rtx_true (const_rtx follower ATTRIBUTE_UNUSED, + const_rtx followee ATTRIBUTE_UNUSED) +{ + return true; +} + /* Generic hook that takes (enum machine_mode, unsigned HOST_WIDE_INT) and returns false. */ bool |