This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC Induction Variable Terminology
- From: law at redhat dot com
- To: Chris Lattner <sabre at nondot dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 10 Sep 2003 01:53:38 -0600
- Subject: Re: GCC Induction Variable Terminology
- Reply-to: law at redhat dot com
In message <Pine.LNX.4.44.0309092310010.1882-100000@nondot.org>, Chris Lattner
writes:
>
>What exactly are a "basic" and "general" induction variables? I see a lot
>of references to them on the list and in the code, but not in any
>literature that I've found. Can someone point me to a description of what
>they are? :)
A basic induction variable is a pseudo register which is set within
a loop only by incrementing or decrementing its value.
A general induction variable is a pseudo register with a value
which is a linear function of a basic induction variable.
Jeff