diff options
author | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-20 13:06:13 +0000 |
---|---|---|
committer | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-20 13:06:13 +0000 |
commit | aedcc7e0173f6131ef43c7c3fa8309ec73b70082 (patch) | |
tree | a6c4f76bd2994f406f1784f5e0d5acad7868116b /gcc/tree-ssa-loop-ivopts.c | |
parent | f9ecc0359e6a4042600e7c5ef4dbb8fe0b3aafe3 (diff) | |
download | gcc-aedcc7e0173f6131ef43c7c3fa8309ec73b70082.tar.gz |
* tree-ssa-loop-ivopts.c (get_address_cost): Do not artificially
inflate costs for addresses with an out-of-bounds address.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119014 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-ivopts.c')
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index 29885f2fac7..6642b5d828c 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; |