[NDS32] Have shirnk-wrapping optimization to be performed on nds32 target.
authorChung-Ju Wu <jasonwucj@gmail.com>
Fri, 16 Jan 2015 06:20:22 +0000 (06:20 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Fri, 16 Jan 2015 06:20:22 +0000 (06:20 +0000)
commit03390cda42267d8d04c7bde6c2a649cd255ae367
treef85dd78875ae4f283fa1ab54e809870a6a7ec11a
parentaa2642ef15852495d84f737010522358ed159271
[NDS32] Have shirnk-wrapping optimization to be performed on nds32 target.

gcc/
* config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
* config/nds32/nds32.md (unspec_volatile_func_return): Remove.
(return_internal): New.
(return): Define this named pattern.
(simple_return): Define this named pattern.
* config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
pattern instead of unspec_volatile_func_return.
(nds32_expand_epilogue_v3pop): Likewise.
(nds32_can_use_return_insn): New function.

From-SVN: r219711
gcc/ChangeLog
gcc/config/nds32/nds32-protos.h
gcc/config/nds32/nds32.c
gcc/config/nds32/nds32.md