Fix PR43209: Do not decrease the cost of an IV candidate when the cost is infinite.
commit0a5fa2b7bb7cef9dd55790bf386a5e7c09284947
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Mar 2010 12:12:50 +0000 (4 12:12 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Mar 2010 12:12:50 +0000 (4 12:12 +0000)
treeebedb017ebbb3aaafa250c0876b89feb978c51d9
parent4f0fcaada710e71cc98685eee4a4b7edc183a25b
Fix PR43209: Do not decrease the cost of an IV candidate when the cost is infinite.

2010-03-03  Changpeng Fang  <changpeng.fang@amd.com>

      PR middle-end/43209
      * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not decrease
      the cost of an IV candidate when the cost is infinite.

      * gcc.dg/tree-ssa/ivopts-4.c: New.

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