OSDN Git Service

PR tree-optimization/41497
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Oct 2009 23:05:39 +0000 (23:05 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Oct 2009 23:05:39 +0000 (23:05 +0000)
commit8da11536673aba7617a056943f17b857808c32de
tree19f73c5acca1dc29d3476bc353efe3c387d3dae3
parent8d057f8c0150a739ccf6fd8a8ce21fba794efa1b
PR tree-optimization/41497
* tree-scalar-evolution.c (analyze_evolution_in_loop): Return
chrec_dont_know if the evolution function returned by follow_ssa_edge
is constant in the analyzed loop and is not compatible with the
initial value before the loop.
* tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153441 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr41497.c [new file with mode: 0644]
gcc/tree-chrec.h
gcc/tree-scalar-evolution.c