[ARC] Remove unused patterns, refactor unspec+offset pattern gen.
authorClaudiu Zissulescu <claziss@synopsys.com>
Mon, 5 Dec 2016 11:16:38 +0000 (12:16 +0100)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Mon, 5 Dec 2016 11:16:38 +0000 (12:16 +0100)
commit5a5c5784d89008664ab42c17efcab7198b132456
tree0f9c2bad40c6cc82f2ca09eda98853072a4893a9
parentaad6838ec786662b6ffb28c494564aba29ad1a4e
[ARC] Remove unused patterns, refactor unspec+offset pattern gen.

2016-12-05  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
* config/arc/arc.c (arc_unspec_offset): New function.
(arc_finalize_pic): Change.
(arc_emit_call_tls_get_addr): Likewise.
(arc_legitimize_tls_address): Likewise.
(arc_legitimize_pic_address): Likewise.
(insn_is_tls_gd_dispatch): Remove.
* config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
* config/arc/arc.md (ls_gd_load): Remove unused pattern.
(tls_gd_dispatch): Likewise.

From-SVN: r243244
gcc/ChangeLog
gcc/config/arc/arc-protos.h
gcc/config/arc/arc.c
gcc/config/arc/arc.h
gcc/config/arc/arc.md