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: [PATCH]: Fix PR tree-optimization/21407



On May 10, 2005, at 1:21 PM, Dale Johannesen wrote:



On May 10, 2005, at 10:08 AM, Daniel Berlin wrote:
The only opinion i personally hold is that it would be better for
optimizers if the code is illegal.  :)

And for most users. One of ours did something like this:


struct foo { int a; int b; };

bar() {
   struct foo f;
   f.a= ...;
   g(&f.b);
   if (f.a) ....
}

He wants f.a's value propagated across the call, and kept in a register.
That would be cool, if it's valid.

In fact this comes up in nested functions, at least we should cause this to
happen for the unnested function struct. And yes this shows up in real code,
just not C code, fortran code really.


Thanks,
Andrew Pinski


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