re PR tree-optimization/49279 (Optimization incorrectly presuming constant variable...
authorJakub Jelinek <jakub@redhat.com>
Thu, 6 Oct 2011 16:38:29 +0000 (18:38 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 6 Oct 2011 16:38:29 +0000 (18:38 +0200)
commitb799033017f0b33846490fc4612b4eb29b9ed0c6
tree6d63b4a87380ed4deee53471eb0ac57a208ac508
parentb966d3a966a20aaa3de54d6a7ea78703ffb22a8d
re PR tree-optimization/49279 (Optimization incorrectly presuming constant variable inside loop in g++ 4.5 and 4.6 with -O2 and -O3 for x86_64 targets)

PR tree-optimization/49279
* tree-ssa-structalias.c (find_func_aliases): Don't handle
CAST_RESTRICT.
* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Allow
restrict propagation.
* tree-ssa.c (useless_type_conversion_p): Don't return false
if TYPE_RESTRICT differs.

* gcc.dg/tree-ssa/restrict-4.c: XFAIL.
* gcc.c-torture/execute/pr49279.c: New test.

From-SVN: r179620
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr49279.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/restrict-4.c
gcc/tree-ssa-forwprop.c
gcc/tree-ssa-structalias.c
gcc/tree-ssa.c