From: Sebastian Pop Date: Thu, 21 Jun 2007 17:06:05 +0000 (+0000) Subject: re PR tree-optimization/19590 (IVs with the same evolution not eliminated) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6f1c9cd02fe6c75045024074dc9edf59c2981042;p=gcc.git re PR tree-optimization/19590 (IVs with the same evolution not eliminated) PR tree-optimization/19590 * tree-vrp.c (adjust_range_with_scev): Set the range when the result of scev is a constant. * gcc/testsuite/gcc.dg/tree-ssa/pr19590.c: New. From-SVN: r125925 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 781a421110c..17997e9309b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2007-06-21 Sebastian Pop + + PR tree-optimization/19590 + * tree-vrp.c (adjust_range_with_scev): Set the range when the result + of scev is a constant. + * gcc/testsuite/gcc.dg/tree-ssa/pr19590.c: New. + 2007-06-21 Kenneth Zadeck * df-problems.c (df_note_bb_compute): Made computation of live diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr19590.c b/gcc/testsuite/gcc.dg/tree-ssa/pr19590.c new file mode 100644 index 00000000000..1be1119dac0 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr19590.c @@ -0,0 +1,37 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fdump-tree-ivopts" } */ + +void vnum_test8(int *data) +{ + int i; + int stop = data[3]; + int m = data[4]; + int n = m; + for (i=1; iequiv); + return; + } + if (TREE_CODE (chrec) != POLYNOMIAL_CHREC) return;