]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* loop.c: Move comments describing BIV's and GIV's to top of file
authorChris Lattner <sabre@nondot.org>
Fri, 12 Sep 2003 15:52:24 +0000 (15:52 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Fri, 12 Sep 2003 15:52:24 +0000 (15:52 +0000)
From-SVN: r71333

gcc/ChangeLog
gcc/loop.c

index eb5e258df6e5cba6b7fc75359e8d7972d0f3e72b..45fbeec9c32a749a4ab85720c0be7972c7309516 100644 (file)
@@ -1,3 +1,7 @@
+2003-09-12  Chris Lattner <sabre@nondot.org>
+
+       * loop.c: Move comments describing BIV's and GIV's to top of file
+
 2003-09-12  Roger Sayle  <roger@eyesopen.com>
 
        PR optimization/8967
index 31592fc2ba1cdb72fbafb025cd3043d2c17fd68e..2866ce0cb4b7d932b7ebe285531b5dbe0a86ab1f 100644 (file)
@@ -22,8 +22,16 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 /* This is the loop optimization pass of the compiler.
    It finds invariant computations within loops and moves them
    to the beginning of the loop.  Then it identifies basic and
-   general induction variables.  Strength reduction is applied to the general
-   induction variables, and induction variable elimination is applied to
+   general induction variables.
+
+   Basic induction variables (BIVs) are a pseudo registers which are set within
+   a loop only by incrementing or decrementing its value.  General induction
+   variables (GIVs) are pseudo registers with a value which is a linear function
+   of a basic induction variable.  BIVs are recognized by `basic_induction_var';
+   GIVs by `general_induction_var'.
+
+   Once induction variables are identified, strength reduction is applied to the
+   general induction variables, and induction variable elimination is applied to
    the basic induction variables.
 
    It also finds cases where
@@ -4223,14 +4231,6 @@ emit_prefetch_instructions (struct loop *loop)
   return;
 }
 \f
-/* A "basic induction variable" or biv is a pseudo reg that is set
-   (within this loop) only by incrementing or decrementing it.  */
-/* A "general induction variable" or giv is a pseudo reg whose
-   value is a linear function of a biv.  */
-
-/* Bivs are recognized by `basic_induction_var';
-   Givs by `general_induction_var'.  */
-
 /* Communication with routines called via `note_stores'.  */
 
 static rtx note_insn;