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
This commit is contained in:
Bernd Schmidt 2006-11-20 13:06:13 +00:00 committed by Bernd Schmidt
parent bcbb974df4
commit b9b36edd96
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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;