Andrew Pinski - Re: [PATCH] Fix PR30978, forwprop not fully propagating conditionals (original) (raw)

This is the mail archive of the gcc-patches@gcc.gnu.orgmailing 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]

On 2/27/07, Richard Guenther rguenther@suse.de wrote:

This fixes PR30978 to lay grounds for a fix for PR30965 (failing to tree-combine conditions).

I would not have add an option and would have changed the testcase testsuite/gcc.dg/tree-ssa/ssa-fre-4.c to use char instead of _Bool. And now forwprop is getting too big for its own good really. Fold even does not do all of the optimizations that forwprop does (though it does the above one, I know because I had to add it).

It is better for you and your time instead of keep on adding stuff to forwprop to write a real tree combiner that uses fold to fold the expressions and then just improve fold instead.

Thanks, Andrew Pinski


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