Commit b5ee6752 by Tom de Vries Committed by Tom de Vries

re PR middle-end/45098 (Missed induction variable optimization)

2011-05-18  Tom de Vries  <tom@codesourcery.com>

	PR target/45098
	* tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.

From-SVN: r173872
parent 5d861bf2
2011-05-18 Tom de Vries <tom@codesourcery.com>
PR target/45098
* tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2011-05-18 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
......
......@@ -2866,6 +2866,8 @@ computation_cost (tree expr, bool speed)
if (MEM_P (rslt))
cost += address_cost (XEXP (rslt, 0), TYPE_MODE (type),
TYPE_ADDR_SPACE (type), speed);
else if (!REG_P (rslt))
cost += rtx_cost (rslt, SET, speed);
return cost;
}
......
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