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.bonz...@gmail.com] On > Behalf Of Paolo Bonzini > Sent: 23 December 2009 15:01 > To: Bingfeng Mei > Cc: Steven Bosscher; gcc@gcc.gnu.org; dber...@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 > >