public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PTR-PLUS] Fix up  forwprop testcase
@ 2007-05-19  0:47 Andrew_Pinski
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew_Pinski @ 2007-05-19  0:47 UTC (permalink / raw)
  To: gcc-patches

Hi,
  This fixes up the new forwprop testcase which I added to the trunk.  The 
problem here was that we were checking for PLUS_EXPR and then also 
checking for a cast which is no longer there.


Committed after a bootstrap/test on i686-linux-gnu with 2 regressions (the 
2 regressions are due to forwprop doing a better job and data-ref not 
understanding the IR any more, see PR 31995 and 31996 for more details and 
a testcase for the mainline).

Thanks,
Andrew Pinski

ChangeLog:

        * tree-ssa-forwprop.c
        (forward_propagate_addr_into_variable_array_index):
        Don't expect there to be a cast for the index as that does not 
exist anymore.
        (forward_propagate_addr_expr_1): Check for
        POINTER_PLUS_EXPR instead of PLUS_EXPR.
        Don't check for the first operand of the
        POINTER_PLUS_EXPR was the index as it
        cannot be.

        * gcc.dg/tree-ssa/forwprop-1.c: New testcase.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-19  0:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <OF823E30DC.B37CFD23-ON882572E0.0003D305-882572E0.000449D9@LocalDomain>
2007-05-19  0:48 ` [PTR-PLUS] Fix up forwprop testcase Andrew_Pinski
2007-05-19  0:47 Andrew_Pinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).