From: rakdver Date: Tue, 22 Mar 2005 22:08:53 +0000 (+0000) Subject: * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1b673caf38af231b55ce4d3c2e1c36ab2af5891;p=thirdparty%2Fgcc.git * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve artificial original candidates. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96894 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a48a35e5a2e4..9d0a7ef44999 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-03-22 Zdenek Dvorak + + * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve + artificial original candidates. + 2005-03-22 Richard Guenther Jan Hubicka Steven Bosscher cost = cost_step + cost_base / AVG_LOOP_NITER (current_loop); - /* Prefer the original iv unless we may gain something by replacing it. */ - if (cand->pos == IP_ORIGINAL) + /* Prefer the original iv unless we may gain something by replacing it; + this is not really relevant for artificial ivs created by other + passes. */ + if (cand->pos == IP_ORIGINAL + && !DECL_ARTIFICIAL (SSA_NAME_VAR (cand->var_before))) cand->cost--; /* Prefer not to insert statements into latch unless there are some