optimization/10087: [3.3/3.4 regression] optimizer produces wrong code when indexing 2D array

Janis Johnson janis187@us.ibm.com
Sat Mar 15 21:26:00 GMT 2003


Synopsis: [3.3/3.4 regression] optimizer produces wrong code when indexing 2D array

The regression appeared with this patch:

Sun Jul 21 00:54:54 CEST 2002  Jan Hubicka  <jh@suse.cz>

	* gcse.c: Include cselib.h
	(constptop_register): Break out from ...
	(cprop_insn): ... here; kill basic_block argument.
	(do_local_cprop, local_cprop_pass): New functions.
	(one_cprop_pass): Call local_cprop_pass.

For my testing I used -O2 on i686-pc-linux-gnu with the
testcase from Wolfgang.

Janis



More information about the Gcc-bugs mailing list