[PATCH (3/7)] Widening multiply-and-accumulate pattern matching

Stubbs, Andrew Andrew_Stubbs@mentor.com
Fri Jun 24 18:22:00 GMT 2011


On 24/06/11 16:47, Richard Guenther wrote:
>> >  I can certainly add checks to make sure that the skipped operations
>> >  actually don't make any important changes to the value, but do I need to?
> Yes.

Ok, I'll go away and do that then.

BTW, I see useless_type_conversion_p, but that's not quite what I want. 
Is there an equivalent existing function to determine whether a 
conversion changes the logical/arithmetic meaning of a type?

I mean, conversion to a wider mode is not "useless", but it is harmless, 
whereas conversion to a narrower mode may truncate the value.

Andrew



More information about the Gcc-patches mailing list