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 middle-end/17967, remove_useless_stmts is slow



On Oct 14, 2004, at 4:52 PM, Richard Henderson wrote:


On Thu, Oct 14, 2004 at 02:36:41PM -0400, Andrew Pinski wrote:
	* tree-cfg.c (remove_usless_stmts_cond):  Fold statement.
	(remove_useless_stmts_1):  Fold trees we know how to fold.

Ok.

I reverted it because I did not test fully and found that it causes some regressions. Most of them are caused by fold (and the C front-end which has other issues than talked about here) not being able to fold &a[0]+1 into &a[1] unlike what fold_stmt can do.

Why did someone put this part of the foldder into the fold_stmt
instead of fold I don't know (Diego was it you?).

Thanks,
Andrew Pinski


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