Commit 5a770e01 by Vladimir Makarov Committed by Vladimir Makarov

re PR rtl-optimization/61325 (aarch64_be build fails)

2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/61325
	* lra-constraints.c (process_address_1): Check scale equal to one
	to prevent transformation: base + scale * index => base + new_reg.

From-SVN: r211320
parent 4dadc66d
2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/61325
* lra-constraints.c (process_address_1): Check scale equal to one
to prevent transformation: base + scale * index => base + new_reg.
2014-06-06 Richard Biener <rguenther@suse.de>
PR tree-optimization/59299
......
......@@ -3033,6 +3033,13 @@ process_address_1 (int nop, rtx *before, rtx *after)
*ad.inner = simplify_gen_binary (PLUS, GET_MODE (new_reg),
new_reg, *ad.index);
}
else if (get_index_scale (&ad) == 1)
{
/* The last transformation to one reg will be made in
curr_insn_transform function. */
end_sequence ();
return false;
}
else
{
/* base + scale * index => base + new_reg,
......
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