diff options
author | Bernd Schmidt <bernd.schmidt@analog.com> | 2006-11-20 13:06:13 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2006-11-20 13:06:13 +0000 |
commit | b9b36edd9660b25e4a74ac9d4791706962665694 (patch) | |
tree | a6c4f76bd2994f406f1784f5e0d5acad7868116b /gcc | |
parent | bcbb974df49f31123d9283eac9d80561258a0ef7 (diff) | |
download | gcc-b9b36edd9660b25e4a74ac9d4791706962665694.zip gcc-b9b36edd9660b25e4a74ac9d4791706962665694.tar.gz gcc-b9b36edd9660b25e4a74ac9d4791706962665694.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0dc55b7..bf8f895 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 <pinskia@gmail.com> PR rtl-opt/29879 diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index 29885f2..6642b5d 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; |