2015-05-19 David Sherwood <david.sherwood@arm.com>
commit09c7ce539539dc7a0460973b63b269c71b527379
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 May 2015 17:37:45 +0000 (19 17:37 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 May 2015 17:37:45 +0000 (19 17:37 +0000)
tree4a838115d14ebe93303016d8ff822904c206b25c
parent9b85291b9675e17f8401b1a9d928709b670c49a9
2015-05-19  David Sherwood  <david.sherwood@arm.com>

* loop-invariant.c (create_new_invariant): Don't calculate address cost
if mode is not a scalar integer.
(get_inv_cost): Increase computational cost for unused invariants.

* gcc.dg/loop-invariant.c: New testcase.

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