Fix PR42640: Correctly initialize the value of the new induction variable.
commit44f1d7db60ef0b1ff67fcd94b903865d551ab5af
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Mar 2010 10:22:30 +0000 (2 10:22 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Mar 2010 10:22:30 +0000 (2 10:22 +0000)
treeb0076122adc5adf6b7a8bd73fa49ac375ec186db
parenta426f02532d2618014306177912269473bf71e34
Fix PR42640: Correctly initialize the value of the new induction variable.

2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>

PR middle-end/42640
* tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
the assignment from the new induction variable to the assignment
of the value from the original loop PHI function.

* gcc.dg/tree-ssa/pr42640.c: New.

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