Commit e9d68de9 by Martin Jambor Committed by Martin Jambor

expr.c (expand_expr_real_1): Remove setting parent's alias set for temporaries…

expr.c (expand_expr_real_1): Remove setting parent's alias set for temporaries created for a bitfield...

2012-04-23  Martin Jambor  <mjambor@suse.cz>

	* expr.c (expand_expr_real_1): Remove setting parent's alias set for
	temporaries created for a bitfield (reverting revision 122014).

From-SVN: r186718
parent 6eea7709
2012-04-23 Martin Jambor <mjambor@suse.cz>
* expr.c (expand_expr_real_1): Remove setting parent's alias set for
temporaries created for a bitfield (reverting revision 122014).
2012-04-23 Richard Guenther <rguenther@suse.de> 2012-04-23 Richard Guenther <rguenther@suse.de>
* tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
......
...@@ -9903,19 +9903,11 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode, ...@@ -9903,19 +9903,11 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode,
necessarily be constant. */ necessarily be constant. */
if (mode == BLKmode) if (mode == BLKmode)
{ {
HOST_WIDE_INT size = GET_MODE_BITSIZE (ext_mode);
rtx new_rtx; rtx new_rtx;
/* If the reference doesn't use the alias set of its type, new_rtx = assign_stack_temp_for_type (ext_mode,
we cannot create the temporary using that type. */ GET_MODE_BITSIZE (ext_mode),
if (component_uses_parent_alias_set (exp)) 0, type);
{
new_rtx = assign_stack_local (ext_mode, size, 0);
set_mem_alias_set (new_rtx, get_alias_set (exp));
}
else
new_rtx = assign_stack_temp_for_type (ext_mode, size, 0, type);
emit_move_insn (new_rtx, op0); emit_move_insn (new_rtx, op0);
op0 = copy_rtx (new_rtx); op0 = copy_rtx (new_rtx);
PUT_MODE (op0, BLKmode); PUT_MODE (op0, BLKmode);
......
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