Improve prepare_shrink_wrap to sink more instructions
authorJiong Wang <jiong.wang@arm.com>
Wed, 24 Sep 2014 18:30:34 +0000 (18:30 +0000)
committerJiong Wang <jiwang@gcc.gnu.org>
Wed, 24 Sep 2014 18:30:34 +0000 (18:30 +0000)
commit2b63a3acfa4f49c2117b1c03287be7b5df20ebf8
tree1e66f041f02df3ab34d92329d628325b4a11bc3e
parent8919453c16b36ebbcb48aec5464b8862503017b4
Improve prepare_shrink_wrap to sink more instructions

  gcc/
    * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
    !REG_P (src) to release more instruction sink opportunities.

  gcc/testsuite/
    * gcc.target/aarch64/shrink_wrap_symbol_ref_1.c: New testcase.

From-SVN: r215563
gcc/ChangeLog
gcc/shrink-wrap.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/shrink_wrap_symbol_ref_1.c [new file with mode: 0644]