PR tree-optimization/29581
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Nov 2006 09:35:34 +0000 (09:35 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Nov 2006 09:35:34 +0000 (09:35 +0000)
commit9d4e93164a28cc46f4907c105fff07f1d4d1768c
tree98699616c4062e9e81d2c10336ff645e90ced992
parent9ba2a8d41e3e577394c960ba662c401f63027dca
PR tree-optimization/29581
* lambda-code.c (replace_uses_equiv_to_x_with_y): Add YINIT,
REPLACEMENTS, FIRSTBSI arguments.  If initial condition or
type is different between Y and USE, create a temporary
variable, initialize it at the beginning of the body bb
and use it as replacement instead of Y.

* gcc.dg/pr29581-1.c: New test.
* gcc.dg/pr29581-2.c: New test.
* gcc.dg/pr29581-3.c: New test.
* gcc.dg/pr29581-4.c: New test.
* gfortran.dg/pr29581.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118848 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/lambda-code.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr29581-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr29581-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr29581-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr29581-4.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr29581.f90 [new file with mode: 0644]