Simple speedup patches

Andrew Pinski pinskia@physics.uc.edu
Wed Apr 23 15:57:00 GMT 2003


This patch speeds up compiling a program (c++/Fortan) by about 4 
seconds or about 2%.

Thanks,
Andrew Pinski

Bootstrapped and tested on i686-unknown-openbsd3.1.

New patch which correctly rewrites the loop for find_loads and removes 
a warning introduced by pervious patch:
ChangeLog:

2003-04-22	Andrew Pinski <pinskia@physics.uc.edu>

	* alias.c (rtx_equal_for_memref_p): Move equality check
	before the check for zero, remove redundant check for
	double zero. (find_base_term): Move case `REG' out of the switch.
	* cfgrtl.c (verify_flow_info): Remove redundant INSN_UID.
	Remove invariant load in the loop over instructions in the basic
	block.
	* gcse.c (trim_ld_motion_mems): Remove invariant load of
	ptr->pattern, expr_hash_table.table, and expr_hash_table.size.
	(compute_store_table): Remove invariant load of	INSN_UID (insn).
	(find_loads): Remove redundant checks of GET_CODE (x). Rewrite the
	loop over the the insn. (build_store_vectors): Remove invariant
	load of bb->index, max_gcse_regno and ptr->index.
	* lists.c (alloc_INSN_LIST): Rewrite so that sibcall can be
	applied. (alloc_EXPR_LIST): Likewise.
	* loop.c (loop_regs_scan): Remove invariant load of regs->num.
	* rtlanal.c (reg_mentioned_p): Remove redundant checks for
	GET_CODE (in). (for_each_rtx): Remove redundant checks for
	GET_CODE (*x).
	

cp/ChangeLog:

2003-04-22	Andrew Pinski <pinskia@physics.uc.edu>
	* typeck.c (comptypes): Move when the AND for strict after the
	simple equality checks.

Patch:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mycurrent.patch.20030423
Type: application/octet-stream
Size: 11155 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030423/df0b4468/attachment.obj>
-------------- next part --------------




More information about the Gcc-patches mailing list