mn10300.c: Include cfgloop.h.
authorNick Clifton <nickc@redhat.com>
Wed, 4 May 2011 10:08:09 +0000 (10:08 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 4 May 2011 10:08:09 +0000 (10:08 +0000)
commit662c03f4601e31aaf76e8fe2b6ebbd421156ebab
tree41bfd3b991272c5c78b2f4b0ce1140c65e909919
parent843b691524dbbb03fdcc541d2cfadb9f5ed84342
mn10300.c: Include cfgloop.h.

* config/mn10300/mn10300.c: Include cfgloop.h.
(DUMP): New macro.
(mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
Lcc or a FLcc insn into the instruction stream.
(mn10300_block_contains_call): New function.  Returns true if the
given basic block contains a CALL insn.
(mn10300_loop_contains_call_insn): New function.  Returns true if
the given loop contains a CALL insn.
(mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
to use the SETLB and Lcc or FLcc insns.
(mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
(TARGET_FLAGS): Add MASK_ALLOW_SETLB.
* config/mn10300/mn10300.opt (msetlb): New option.  Used to
disable the SETLB optimization.
* config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
__SETLB__ or __NO_SETLB__.
* config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
(movsf_internal): Handle MDR register.
(cmpsi): Make visible.
(setlb): New pattern.
(Lcc): New pattern.
(FLcc): New pattern.

From-SVN: r173362
gcc/ChangeLog
gcc/config/mn10300/mn10300.c
gcc/config/mn10300/mn10300.h
gcc/config/mn10300/mn10300.md
gcc/config/mn10300/mn10300.opt