diff options
author | Wei Guozhi <carrot@google.com> | 2009-10-27 09:06:36 +0000 |
---|---|---|
committer | Wei Guozhi <carrot@gcc.gnu.org> | 2009-10-27 09:06:36 +0000 |
commit | 2929029c50e34fdc22da8b8b029daa880dd70359 (patch) | |
tree | 5ae128336a4b205cba9a2852606f3947295a32f3 /gcc/sched-rgn.c | |
parent | 9c67ec2204d7db5ad689b2b4728c8816bbbe6c3e (diff) | |
download | gcc-2929029c50e34fdc22da8b8b029daa880dd70359.zip gcc-2929029c50e34fdc22da8b8b029daa880dd70359.tar.gz gcc-2929029c50e34fdc22da8b8b029daa880dd70359.tar.bz2 |
target.h (have_conditional_execution): Add a new target hook function.
* target.h (have_conditional_execution): Add a new target hook function.
* target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
* targhooks.h (default_have_conditional_execution): Likewise.
* targhooks.c (default_have_conditional_execution): Likewise.
* doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
* config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
(arm_have_conditional_execution): New function.
* ifcvt.c (noce_process_if_block, find_if_header,
cond_exec_find_if_block, dead_or_predicable): Change the usage of macro
HAVE_conditional_execution to a target hook call.
* recog.c (peephole2_optimize): Likewise.
* sched-rgn.c (add_branch_dependences): Likewise.
* final.c (asm_insn_count, final_scan_insn): Likewise.
* bb-reorder.c (HAVE_conditional_execution): Remove it.
From-SVN: r153584
Diffstat (limited to 'gcc/sched-rgn.c')
-rw-r--r-- | gcc/sched-rgn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/sched-rgn.c b/gcc/sched-rgn.c index de2dd0a..0acdc4a 100644 --- a/gcc/sched-rgn.c +++ b/gcc/sched-rgn.c @@ -2508,7 +2508,9 @@ add_branch_dependences (rtx head, rtx tail) add_dependence (last, insn, REG_DEP_ANTI); } -#ifdef HAVE_conditional_execution + if (!targetm.have_conditional_execution ()) + return; + /* Finally, if the block ends in a jump, and we are doing intra-block scheduling, make sure that the branch depends on any COND_EXEC insns inside the block to avoid moving the COND_EXECs past the branch insn. @@ -2557,7 +2559,6 @@ add_branch_dependences (rtx head, rtx tail) if (INSN_P (insn) && GET_CODE (PATTERN (insn)) == COND_EXEC) add_dependence (tail, insn, REG_DEP_ANTI); } -#endif } /* Data structures for the computation of data dependences in a regions. We @@ -3588,4 +3589,3 @@ struct rtl_opt_pass pass_sched2 = TODO_ggc_collect /* todo_flags_finish */ } }; - |