From: Bernd Schmidt Date: Mon, 20 Nov 2006 13:06:13 +0000 (+0000) Subject: tree-ssa-loop-ivopts.c (get_address_cost): Do not artificially inflate costs for... X-Git-Tag: releases/gcc-4.3.0~8386 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9b36edd9660b25e4a74ac9d4791706962665694;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0dc55b7a366b..bf8f895ded62 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 PR rtl-opt/29879 diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index 29885f2fac7e..6642b5d828cf 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -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;