Commit 10406801 by Jiong Wang Committed by Jiong Wang

[LRA] Don't count spilling cost for it offmemok

	* lra-constraints.c (process_alt_operands): Don't add spilling cost for
	"offmemok".

From-SVN: r238010
parent 1210573b
2016-07-05 Jiong Wang <jiong.wang@arm.com>
* lra-constraints.c (process_alt_operands): Don't add spilling cost for
"offmemok".
2016-07-05 Jan Hubicka <jh@suse.cz>
* tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
......
......@@ -2488,7 +2488,9 @@ process_alt_operands (int only_alternative)
Code below increases the reject for both pseudo and non-pseudo
spill. */
if (no_regs_p && !(REG_P (op) && hard_regno[nop] < 0))
if (no_regs_p
&& !(MEM_P (op) && offmemok)
&& !(REG_P (op) && hard_regno[nop] < 0))
{
if (lra_dump_file != NULL)
fprintf
......
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