Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
4ca0d6d4
Commit
4ca0d6d4
authored
Sep 12, 2003
by
Chris Lattner
Committed by
Gerald Pfeifer
Sep 12, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* loop.c: Move comments describing BIV's and GIV's to top of file
From-SVN: r71333
parent
d2399d75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
gcc/ChangeLog
+4
-0
gcc/loop.c
+10
-10
No files found.
gcc/ChangeLog
View file @
4ca0d6d4
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>
2003-09-12 Roger Sayle <roger@eyesopen.com>
PR optimization/8967
PR optimization/8967
...
...
gcc/loop.c
View file @
4ca0d6d4
...
@@ -22,8 +22,16 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
...
@@ -22,8 +22,16 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
/* This is the loop optimization pass of the compiler.
/* This is the loop optimization pass of the compiler.
It finds invariant computations within loops and moves them
It finds invariant computations within loops and moves them
to the beginning of the loop. Then it identifies basic and
to the beginning of the loop. Then it identifies basic and
general induction variables. Strength reduction is applied to the general
general induction variables.
induction variables, and induction variable elimination is applied to
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.
the basic induction variables.
It also finds cases where
It also finds cases where
...
@@ -4223,14 +4231,6 @@ emit_prefetch_instructions (struct loop *loop)
...
@@ -4223,14 +4231,6 @@ emit_prefetch_instructions (struct loop *loop)
return
;
return
;
}
}
/* 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'. */
/* Communication with routines called via `note_stores'. */
static
rtx
note_insn
;
static
rtx
note_insn
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment