Commit bf3892af by Jan Hubicka Committed by Jan Hubicka

tree-sra.c (sra_walk_expr): Add linebreaks.

	* tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
	vectors might cause maybe_lookup_element_for_expr to be called
	on non-sra-candidate.

From-SVN: r121578
parent 942fd98f
2007-02-04 Jan Hubicka <jh@suse.cz>
* tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
vectors might cause maybe_lookup_element_for_expr to be called
on non-sra-candidate.
2007-02-04 Kazu Hirata <kazu@codesourcery.com> 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
* config/bfin/bfin-modes.def, config/bfin/bfin.c, * config/bfin/bfin-modes.def, config/bfin/bfin.c,
......
...@@ -793,10 +793,13 @@ sra_walk_expr (tree *expr_p, block_stmt_iterator *bsi, bool is_output, ...@@ -793,10 +793,13 @@ sra_walk_expr (tree *expr_p, block_stmt_iterator *bsi, bool is_output,
/* A bit field reference to a specific vector is scalarized but for /* A bit field reference to a specific vector is scalarized but for
ones for inputs need to be marked as used on the left hand size so ones for inputs need to be marked as used on the left hand size so
when we scalarize it, we can mark that variable as non renamable. */ when we scalarize it, we can mark that variable as non renamable. */
if (is_output && TREE_CODE (TREE_TYPE (TREE_OPERAND (inner, 0))) == VECTOR_TYPE) if (is_output
&& TREE_CODE (TREE_TYPE (TREE_OPERAND (inner, 0))) == VECTOR_TYPE)
{ {
struct sra_elt *elt = maybe_lookup_element_for_expr (TREE_OPERAND (inner, 0)); struct sra_elt *elt
elt->is_vector_lhs = true; = maybe_lookup_element_for_expr (TREE_OPERAND (inner, 0));
if (elt)
elt->is_vector_lhs = true;
} }
/* A bit field reference (access to *multiple* fields simultaneously) /* A bit field reference (access to *multiple* fields simultaneously)
is not currently scalarized. Consider this an access to the is not currently scalarized. Consider this an access to the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment