Commit 673910d7 by Richard Guenther Committed by Richard Biener

tree-data-ref.c (dr_analyze_innermost): Properly convert the MEM_REF offset to sizetype.

2012-05-31  Richard Guenther  <rguenther@suse.de>

	* tree-data-ref.c (dr_analyze_innermost): Properly convert
	the MEM_REF offset to sizetype.

From-SVN: r188057
parent 669e9a8f
2012-05-31 Richard Guenther <rguenther@suse.de>
* tree-data-ref.c (dr_analyze_innermost): Properly convert
the MEM_REF offset to sizetype.
2012-05-31 Georg-Johann Lay <avr@gjlay.de>
* doc/invoke.texi (AVR Options): Fix typos.
......
......@@ -720,13 +720,12 @@ dr_analyze_innermost (struct data_reference *dr, struct loop *nest)
{
if (!integer_zerop (TREE_OPERAND (base, 1)))
{
if (!poffset)
{
double_int moff = mem_ref_offset (base);
poffset = double_int_to_tree (sizetype, moff);
}
tree mofft = double_int_to_tree (sizetype, moff);
if (!poffset)
poffset = mofft;
else
poffset = size_binop (PLUS_EXPR, poffset, TREE_OPERAND (base, 1));
poffset = size_binop (PLUS_EXPR, poffset, mofft);
}
base = TREE_OPERAND (base, 0);
}
......
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