[tree-ssa] Gimplifying Java

Andrew Pinski pinskia@physics.uc.edu
Fri Jun 13 18:55:00 GMT 2003


I think this also can happen in C++ and C.
C example:
int f(int a)
{
	return a;
}

int g(int a, int b)
{
	b = f(a);
	return a+b;
}


 From *.t05.simple:

;; Function f (f)

f (a)
{
   return a;
}


;; Function g (g)

g (a, b)
{
   int retval.1;

   {
     int a;
     int <UV1ee0>;

     a = a;   <--- how the hell is this true?
     {
       {
         <UV1ee0> = a;
         goto <UL1e70>;
       }
     };
     <UL1e70>:;;
     retval.1 = <UV1ee0>
   };
   b = retval.1;
   return a + b;
}

Thanks,
Andrew Pinski

On Friday, Jun 13, 2003, at 14:39 US/Eastern, Andrew Haley wrote:

> // This bit must be wrong...
>     a = b;
>     b = a;
> // 



More information about the Gcc-patches mailing list