mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-05 13:51:57 +08:00
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:
parent
bcbb974df4
commit
b9b36edd96
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user