Skip to content
Snippets Groups Projects
Commit f76968e6 authored by Richard Guenther's avatar Richard Guenther Committed by Richard Biener
Browse files

tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant indices into an...

tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant indices into an array reference if possible.

2009-04-09  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
	indices into an array reference if possible.
	* tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
	Fold POINTER_PLUS_EXPR statements with invariant address.

	* gcc.dg/tree-ssa/ssa-ccp-25.c: New testcase.
	* gcc.dg/tree-ssa/ssa-ccp-26.c: Likewise.

From-SVN: r145799
parent c90c5fb5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment