re PR tree-optimization/35607 (IVOPTs produces invalid gimple)
authorRichard Guenther <rguenther@suse.de>
Sun, 16 Mar 2008 15:45:09 +0000 (15:45 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sun, 16 Mar 2008 15:45:09 +0000 (15:45 +0000)
commit461f8762a0b00404770bbbcc288c741f931140e4
tree31a2feec16994e9a97405adbceee111bf59d80b5
parent2a31c49ceb396963e298abb196fe3b099814cd3f
re PR tree-optimization/35607 (IVOPTs produces invalid gimple)

2008-03-16  Richard Guenther  <rguenther@suse.de>

PR middle-end/35607
* tree-ssa-loop-niter.c (expand_simple_operations): Do not
expand TREE_INVARIANT operations that are not gimple invariant.

* gcc.c-torture/compile/pr35607.c: New testcase.
* gcc.dg/tree-ssa/loop-19.c: Use -O2 to avoid vectorization.

From-SVN: r133273
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr35607.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/loop-19.c
gcc/tree-ssa-loop-niter.c