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: Unnecessary PRE optimization


It seems that just commenting out this check in fwprop.c should work.
 
 /* Do not propagate loop invariant definitions inside the loop.  */
/*  if (DF_REF_BB (def)->loop_father != DF_REF_BB (use)->loop_father)
    return;*/

Bingfeng

> -----Original Message-----
> From: Paolo Bonzini [mailto:paolo.bonzini@gmail.com] On 
> Behalf Of Paolo Bonzini
> Sent: 23 December 2009 15:01
> To: Bingfeng Mei
> Cc: Steven Bosscher; gcc@gcc.gnu.org; dberlin@dberlin.org
> Subject: Re: Unnecessary PRE optimization
> 
> On 12/23/2009 03:27 PM, Bingfeng Mei wrote:
> > Do you mean if TARGET_ADDRES_COST (non-x86) is defined properly,
> > this should be fixed?  Or it requires extra patch?
> 
> No, if TARGET_ADDRESS_COST was fixed for x86 (and of course defined 
> properly for your target), we could fix this very easily.
> 
> Paolo
> 
> 


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