Commit b9b36edd by Bernd Schmidt Committed by Bernd Schmidt

tree-ssa-loop-ivopts.c (get_address_cost): Do not artificially inflate costs for…

tree-ssa-loop-ivopts.c (get_address_cost): Do not artificially inflate costs for addresses with an out-of-bounds address.

	* tree-ssa-loop-ivopts.c (get_address_cost): Do not artificially
	inflate costs for addresses with an out-of-bounds address.

From-SVN: r119014
parent bcbb974d
......@@ -28,6 +28,9 @@
* config/bfin/bfin.c (bfin_function_ok_for_sibcall): Handle some
edge cases with local functions and TARGET_ID_SHARED_LIBRARY.
* tree-ssa-loop-ivopts.c (get_address_cost): Do not artificially
inflate costs for addresses with an out-of-bounds address.
2006-11-19 Andrew Pinski <pinskia@gmail.com>
PR rtl-opt/29879
......
......@@ -3561,10 +3561,7 @@ get_address_cost (bool symbol_present, bool var_present,
cost += multiply_by_cost (ratio, Pmode);
if (s_offset && !offset_p && !symbol_present)
{
cost += add_cost (Pmode);
var_present = true;
}
cost += add_cost (Pmode);
acost = costs[mem_mode][symbol_present][var_present][offset_p][ratio_p];
return cost + acost;
......
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