]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: [multiple changes]
authorRichard Guenther <rguenther@suse.de>
Wed, 17 Jun 2009 19:45:52 +0000 (19:45 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 17 Jun 2009 19:45:52 +0000 (19:45 +0000)
commit4ae682a6fd9fc324bdb84a187c6d2da3f161ae5a
tree4b470aec23aac0dd7fe9a82a731168f654c049e6
parentb7601129eff1b29ca7f3b6557de082e06ab9f36a
backport: [multiple changes]

2009-06-17  Richard Guenther  <rguenther@suse.de>

Backport from mainline
2009-03-16  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/39455
* tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
mismatches for POINTER_TYPE_P (type).
(number_of_iterations_le): Likewise.

* gcc.dg/pr39455.c: New test.

2009-05-19  Zdenek Dvorak  <ook@ucw.cz>

PR tree-optimization/40087
* tree-ssa-loop-niter.c (number_of_iterations_ne_max,
number_of_iterations_ne): Rename never_infinite argument.
(number_of_iterations_lt_to_ne, number_of_iterations_lt,
number_of_iterations_le): Handle pointer-type ivs when
exit_must_be_taken is false.
(number_of_iterations_cond):  Do not always assume that
exit_must_be_taken if the control variable is a pointer.

* gcc.dg/tree-ssa/pr40087.c: New test.

From-SVN: r148625
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr39455.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr40087.c [new file with mode: 0644]
gcc/tree-ssa-loop-niter.c