This is the mail archive of the
mailing list for the GCC project.
Re: PR 22051
On Sat, 2005-06-25 at 13:25 -0400, Andrew Pinski wrote:
> On Jun 25, 2005, at 12:43 PM, Joseph S. Myers wrote:
> > On Sat, 25 Jun 2005, Jeffrey A Law wrote:
> >>> Mainline testing on hppa2.0w-hp-hpux11.23 shows a new FAIL
> >>> FAIL: gcc.dg/tree-ssa/20030807-2.c scan-tree-dump-times if 0
> >>> but this may not be indicative of a problem with the patch
> >> Is indicative of a problem with the patch. That test is verifying
> >> that we are eliminating a cast from one pointer type to another
> >> when the resulting pointer is used in a comparison against null.
> > I can confirm we have the same new failure with the patch on 4.0
> > branch as
> > well as on mainline.
> Shouldn't VRP handle this testcase instead?
No. It's really not the kind of thing VRP is supposed to handle.
I initially thought it might be as well, but it's really better
handled by a tree combiner or a copy propagation pass which