This is the mail archive of the gcc@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] extra copy


On Thu, 2003-11-13 at 15:09, Joe Buck wrote:

> Cool!  This is the best GCC-related news I've heard in ages.  Are you
> doing copy-prop on structs now?  Or avoiding generating the copy in the
> first place?
> 
Avoiding them using scalar replacement of aggregates (SRA).

  factor.re = 123;	|   SR.2_11 = 123;
  factor.im = 428;	|   SR.3_12 = 428;

  factor.1 = factor;	|   SR.4_13 = SR.2_11;
               		|   SR.5_14 = SR.3_12;

  Zi = factor.1;	|   Zi.re = SR.4_13;
                	|   Zi.im = SR.5_14;


which is then fed into the scalar optimizers.  The trick with SRA is
noticing when it's dangerous or just not worth it.  We will also want to
support some level of structure manipulation, but SRA should give us
much of the low hanging fruit.


Diego.


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