Re: optimizing the pushing of constant parameters to functions

2010-03-01 Thread Michael Matz
Hi, On Sat, 27 Feb 2010, Joern Rennecke wrote: > > >I wonder whether there is a plan to optimize code such as this: > > > > > >extern int (const int x); > > >void () { > > > (444); > > > (444); > > > } > > > > > >by not pushing the constant argument twice. It seems safe to

Re: optimizing the pushing of constant parameters to functions

2010-02-27 Thread Joern Rennecke
Quoting Andrew Pinski : Sent from my iPhone On Feb 27, 2010, at 10:17 AM, "Daniel R. Grayson" wrote: I wonder whether there is a plan to optimize code such as this: extern int (const int x); void () { (444); (444); } by not pushing the constant argument twice. I

Re: optimizing the pushing of constant parameters to functions

2010-02-27 Thread Andrew Pinski
Sent from my iPhone On Feb 27, 2010, at 10:17 AM, "Daniel R. Grayson" wrote: I wonder whether there is a plan to optimize code such as this: extern int (const int x); void () { (444); (444); } by not pushing the constant argument twice. It seems safe to do s

optimizing the pushing of constant parameters to functions

2010-02-27 Thread Daniel R. Grayson
I wonder whether there is a plan to optimize code such as this: extern int (const int x); void () { (444); (444); } by not pushing the constant argument twice. It seems safe to do so, because the function called will not modify its argument on the stack. The experi