Commit fd0a8853 by Jakub Jelinek Committed by Jakub Jelinek

re PR rtl-optimization/37408 (Invalid insn scheduling)

	PR rtl-optimization/37408
	* function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
	if parm is promoted.

From-SVN: r140166
parent 0f7a47dd
2008-09-09 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/37408
* function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
if parm is promoted.
2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/37375
......
......@@ -2332,6 +2332,11 @@ assign_parm_find_stack_rtl (tree parm, struct assign_parm_data_one *data)
stack_parm = gen_rtx_MEM (data->promoted_mode, stack_parm);
set_mem_attributes (stack_parm, parm, 1);
/* set_mem_attributes could set MEM_SIZE to the passed mode's size,
while promoted mode's size is needed. */
if (data->promoted_mode != BLKmode
&& data->promoted_mode != DECL_MODE (parm))
set_mem_size (stack_parm, GEN_INT (GET_MODE_SIZE (data->promoted_mode)));
boundary = data->locate.boundary;
align = BITS_PER_UNIT;
......
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