2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
commit570c7ca7374c46a167f00fa864ab06720c6434e2
authorthopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 May 2015 05:39:14 +0000 (13 05:39 +0000)
committerthopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 May 2015 05:39:14 +0000 (13 05:39 +0000)
tree0763b13038e3d6e66aad049afe6d0efe654fe586
parentf5eab8ebb791a1f7a45bfe0bcdf52463be3cbf69
2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    PR rtl-optimization/64616
    * loop-invariant.c (can_move_invariant_reg): New.
    (move_invariant_reg): Call above new function to decide whether
    instruction can just be moved, skipping creation of temporary
    register.

    gcc/testsuite/
    PR rtl-optimization/64616
    * gcc.dg/loop-8.c: New test.
    * gcc.dg/loop-9.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223113 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/loop-invariant.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/loop-8.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/loop-9.c [new file with mode: 0644]