re PR tree-optimization/36009 (PRE causes missed loop store motion, store sinking...
authorRichard Guenther <rguenther@suse.de>
Thu, 15 May 2008 08:37:22 +0000 (08:37 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 15 May 2008 08:37:22 +0000 (08:37 +0000)
commit8ded35f90c50bd3ff06e75f0bc90dc611360dcac
tree99049872595c742fb546abf5ae46e4c0ed30cf52
parent45ff5edaea467950434730376d3abd8e6cebe196
re PR tree-optimization/36009 (PRE causes missed loop store motion, store sinking doesn't work)

2008-05-15  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/36009
PR tree-optimization/36204
* tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
(determine_invariantness_stmt): Record the loop a store is
always executed in.
* Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
dependency.

* gcc.dg/tree-ssa/ssa-lim-5.c: New testcase.
* gcc.dg/tree-ssa/ssa-lim-6.c: Likewise..

From-SVN: r135330
gcc/ChangeLog
gcc/Makefile.in
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-6.c [new file with mode: 0644]
gcc/tree-ssa-loop-im.c