re PR middle-end/37221 (Missed early loop-unroll optimization - causes 40% degradatio...
authorRichard Guenther <rguenther@suse.de>
Thu, 2 Apr 2009 09:10:53 +0000 (09:10 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 2 Apr 2009 09:10:53 +0000 (09:10 +0000)
commitbf1cbdc6e43e3a62ef6ecac786ac70ecf5851ef6
tree1a6f6d8f33ade81a49b8870ef8209f8ef2aa991e
parent4bb7dbf60ef02a1172371a21e44533aa717a533a
re PR middle-end/37221 (Missed early loop-unroll optimization - causes 40% degradation on SPU)

2009-04-02  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/37221
* tree-flow.h (degenerate_phi_result): Declare.
* tree-ssa-dom.c (degenerate_phi_result): Export.
* tree-scalar-evolution.c (analyze_initial_condition): If
the initial condition is defined by a degenerate PHI node
use the degenerate value.

* gcc.c-torture/compile/20090331-1.c: New testcase.

From-SVN: r145439
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20090331-1.c [new file with mode: 0644]
gcc/tree-flow.h
gcc/tree-scalar-evolution.c
gcc/tree-ssa-dom.c