This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Proposed patch for loop.c


On Thu, May 28, 1998 at 11:26:21AM +0200, Bernd Schmidt wrote:
> I found two problems. First, general_induction_var returns the benefit of
> a giv, but it always returns 1 even if it calculated a benefit of zero.

While my previous loop patches would already handle this particular
example, I think your point about the benefit calculation is sound,
and have incorporated it into my jumbo loop patch.

Of course, benefit calculation based on the cost of the address
calculation in any form is not going to be as useful as benefit
calculation based on register usage across the entire loop.  IMHO.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]