This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/19637] Missed VRP and FRE opportunities in the presence of casts
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Mar 2008 14:35:18 -0000
- Subject: [Bug tree-optimization/19637] Missed VRP and FRE opportunities in the presence of casts
- References: <bug-19637-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from rguenth at gcc dot gnu dot org 2008-03-17 14:35 -------
Subject: Bug 19637
Author: rguenth
Date: Mon Mar 17 14:34:21 2008
New Revision: 133291
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133291
Log:
2008-03-17 Richard Guenther <rguenther@suse.de>
PR tree-optimization/19637
* fold-const.c (fold_unary): Remove restrictions of removing
intermediate pointer-conversions (P2)(P1)P0.
* tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
conversion to void pointer.
(get_maxval_strlen): Handle addresses of the form &(*p)[0].
* g++.dg/tree-ssa/pr19637.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/tree-ssa/pr19637.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-ccp.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19637