From 4b4de898c94e678bbcfa677bbb524fc3bf33ed51 Mon Sep 17 00:00:00 2001 From: Joern Rennecke Date: Sun, 30 Sep 2012 19:25:49 +0000 Subject: 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 --- gcc/hooks.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gcc/hooks.c') diff --git a/gcc/hooks.c b/gcc/hooks.c index 775da3c..b262522 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 -- cgit v1.1