OSDN Git Service

2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
authorsandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jul 2010 17:40:57 +0000 (17:40 +0000)
committersandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jul 2010 17:40:57 +0000 (17:40 +0000)
commitfdd153a126686fc1729b19b6a3285b94838d6ca9
treef20842f5f809320a8d5943d03419f981e5f8a32d
parentf8725d56513b248109bccad632fd7d2954b1bced
2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>

PR middle-end/42505

gcc/
* tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
comments about cost model.
(try_add_cand_for):  Add second strategy for choosing initial set
based on original IVs, controlled by ORIGINALP argument.
(get_initial_solution): Add ORIGINALP argument.
(find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
(find_optimal_iv_set): Try two different strategies for choosing
the IV set, and return the one with lower cost.

gcc/testsuite/
* gcc.target/arm/pr42505.c: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161844 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/pr42505.c [new file with mode: 0644]
gcc/tree-ssa-loop-ivopts.c