Re: [PATCH] Fix for PR52081 - Missed tail merging with pure calls

2012-04-13 Thread Tom de Vries
On 06/03/12 15:21, Richard Guenther wrote: On Mon, Feb 13, 2012 at 1:36 PM, Tom de Vries tom_devr...@mentor.com wrote: On 13/02/12 12:54, Richard Guenther wrote: On Thu, Feb 2, 2012 at 11:44 AM, Tom de Vries tom_devr...@mentor.com wrote: Richard, this patch fixes PR52801. Consider

Re: [PATCH] Fix for PR52081 - Missed tail merging with pure calls

2012-03-06 Thread Richard Guenther
On Mon, Feb 13, 2012 at 1:36 PM, Tom de Vries tom_devr...@mentor.com wrote: On 13/02/12 12:54, Richard Guenther wrote: On Thu, Feb 2, 2012 at 11:44 AM, Tom de Vries tom_devr...@mentor.com wrote: Richard, this patch fixes PR52801. Consider test-case pr51879-12.c: ... __attribute__((pure))

Re: [PATCH] Fix for PR52081 - Missed tail merging with pure calls

2012-02-13 Thread Richard Guenther
On Thu, Feb 2, 2012 at 11:44 AM, Tom de Vries tom_devr...@mentor.com wrote: Richard, this patch fixes PR52801. Consider test-case pr51879-12.c: ... __attribute__((pure)) int bar (int); __attribute__((pure)) int bar2 (int); void baz (int); int x, z; void foo (int y) {  int a = 0;  

Re: [PATCH] Fix for PR52081 - Missed tail merging with pure calls

2012-02-13 Thread Tom de Vries
On 13/02/12 12:54, Richard Guenther wrote: On Thu, Feb 2, 2012 at 11:44 AM, Tom de Vries tom_devr...@mentor.com wrote: Richard, this patch fixes PR52801. Consider test-case pr51879-12.c: ... __attribute__((pure)) int bar (int); __attribute__((pure)) int bar2 (int); void baz (int); int

[PATCH] Fix for PR52081 - Missed tail merging with pure calls

2012-02-02 Thread Tom de Vries
Richard, this patch fixes PR52801. Consider test-case pr51879-12.c: ... __attribute__((pure)) int bar (int); __attribute__((pure)) int bar2 (int); void baz (int); int x, z; void foo (int y) { int a = 0; if (y == 6) { a += bar (7); a += bar2 (6); } else { a