Re: [PATCH, PR 55579] Make SRA keep candidated with only debug replacements

2013-01-08 Thread Jakub Jelinek
On Fri, Jan 04, 2013 at 02:00:39PM +0100, Martin Jambor wrote: > 2013-01-03 Martin Jambor > > PR debug/55579 > * tree-sra.c (analyze_access_subtree): Return true also after > potentially creating a debug-only replacement. > > testsuite/ > * gcc.dg/tree-ssa/pr55579.c: Ne

[PATCH, PR 55579] Make SRA keep candidated with only debug replacements

2013-01-04 Thread Martin Jambor
Hi, the patch below fixes PR 55579 by not disqualifying a candidate variable when it does not have any real replacements but has ones for debug statements only. analyze_access_subtree has to return the same value regardless of MAY_HAVE_DEBUG_STMTS or we get debug comparison errors. I also have a