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: loop-invariant.c patch: Use validate_change to avoid breaking match_dup


On 04/08/2010 10:57 PM, Eric Botcazou wrote:
>> That's misstating the situation.  There are many other targets that have
>> patterns that could be affected.
> 
> Theoritically, yes; in practice, the code is 6 years old and AFAIK it's the 
> first time the issue arises.
> 
>> I see no better way to reorganize the  code; if you have a suggestion,
>> please post it. 
> 
> Attached.  Unless I'm mistaken, it's equivalent to your change.

Mine avoids the recursive call to move_invariant_reg if the first
attempt at validation fails.  If you are certain that that's irrelevant,
I'll happily approve your version.


Bernd


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