Re: [PATCH] Fix tree-into-ssa.c for debug stmts (PR debug/49602)

2011-07-02 Thread Richard Guenther
On Fri, Jul 1, 2011 at 11:21 PM, Jakub Jelinek wrote: > Hi! > > For debug stmt uses, we don't want any PHI nodes to be created > just because of them, so the debug uses need to be ignored > during decisions which PHI nodes to add. > Unfortunately that means get_current_def can't be always trusted.

[PATCH] Fix tree-into-ssa.c for debug stmts (PR debug/49602)

2011-07-01 Thread Jakub Jelinek
Hi! For debug stmt uses, we don't want any PHI nodes to be created just because of them, so the debug uses need to be ignored during decisions which PHI nodes to add. Unfortunately that means get_current_def can't be always trusted. The following patch trusts it in a few cases where I'm reasonably