stack height reduction in tree-SSA

Giovanni Bajo giovannibajo@libero.it
Wed Sep 1 10:50:00 GMT 2004


Joseph S. Myers wrote:
> On Wed, 1 Sep 2004, Giovanni Bajo wrote:
> 
>> void foo(void)
>> {
>>    int a, b;
>> 
>>    a = get();
>>    use_it(&a);
>> 
>>    b = get();
>>    use_it(&b);
>> }
>> 
>> could be optimized to use only one variable on the stack. I have the
>> secret 
> 
> In this example, a is still live during the second calls to get() and
> use_it(); the first call to use_it() could have saved a's address.

Right, sorry for the bogus example.

Giovanni Bajo




More information about the Gcc mailing list