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: [PATCH, Fix PR 31098] a*C == b*C is not foldded to a == b with --fast-math/floating point


On 10/13/07, Tom Tromey <tromey@redhat.com> wrote:
> >>>>> "Pranav" == Pranav Bhandarkar <pranav.bhandarkar@celunite.com> writes:
>
> Pranav> The attached patch addresses the points raised by Paolo, Kaveh
> Pranav> and Tom.
>
> I didn't test this one (I did test the previous patch).
> But, it still does not look quite right to me...

Indeed.  Note that this transformation is also not done for integral types
with undefined overflow which is another missed optimization.

Richard.


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