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]

[PATCH] Split simplify_unary_operation and simplify_binary_operation


This is a very simple code cleanup patch. I was not sure whether to submit this for 4.0 or wait for the branch, but then I thought that having this in 4.0 may make it a bit easier to backport fixes to 4.0.

All of the simplifications that simplify_relational_operation can do and that do not depend on the operations being constants are in a separate function, simplify_relational_operation_1.

What this patch does is extracting simplify_binary_operation_1 (a whopping 800-lines function on its own!) and simplify_unary_operation_1.

Bootstrapped/regtested powerpc-apple-darwin, ok for mainline?

Paolo

2005-02-10 Paolo Bonzini <bonzini@gnu.org>

	* simplify-rtx.c (simplify_unary_operation_1): Extract from...
	(simplify_unary_operation): ... this one.
	(simplify_binary_operation_1): Extract from...
	(simplify_binary_operation): ... this one.


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