On Thu, Sep 9, 2010 at 10:46 AM, Richard Guenther
wrote:
>> 1) Is this a valid optimization in general to attempt wrt other targets
>> (i.e. prevent replacement across calls)?
>
> I think it makes sense in general.
ISTR we even used to do so in the past...?
>> 2) Is there a way to recognize the
On Thu, Sep 9, 2010 at 4:13 AM, Pat Haugen wrote:
> I'm looking into a case where TER is forward propagating a series of
> additions across a call.
>
> extern void foo(void);
> int bar(int a, int b, int c, int d, int e, int f, int g, int h) {
> int ret;
> ret = a + b + c + d + e + f + g + h;
>
I'm looking into a case where TER is forward propagating a series of
additions across a call.
extern void foo(void);
int bar(int a, int b, int c, int d, int e, int f, int g, int h) {
int ret;
ret = a + b + c + d + e + f + g + h;
foo();
return ret; /* 'ret' use replaced by rhs above */