This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Gimplifying Java


On Fri, 2003-06-13 at 18:26, Jeff Sturm wrote:

>   t = {int <tmp>; <tmp> = p->a; <tmp>}
> 
> to:
> 
>   t = {int <tmp>; <tmp> = p->a;}
> 
[ ... ]
> That said, I'm not sure how to correctly express the former in GIMPLE,
> without introducing another temporary.
> 
In C we just introduce another temporary:

{
  int retval.1;
  int t;

  {
    int tmp;

    tmp = p->a;
    retval.1 = tmp
  };
  t = retval.1
}

Would that work for you?


Diego.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]