This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r173362 - in /trunk/gcc: ChangeLog config/mn103...
- From: nickc at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 04 May 2011 10:08:10 -0000
- Subject: r173362 - in /trunk/gcc: ChangeLog config/mn103...
Author: nickc
Date: Wed May 4 10:08:09 2011
New Revision: 173362
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173362
Log:
* 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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/mn10300/mn10300.c
trunk/gcc/config/mn10300/mn10300.h
trunk/gcc/config/mn10300/mn10300.md
trunk/gcc/config/mn10300/mn10300.opt