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
82ee5e63
Commit
82ee5e63
authored
Apr 19, 2000
by
Jan Hubicka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lossage caused by applying old version of my previous patch.
From-SVN: r33254
parent
b9297e70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
gcc/loop.c
+8
-7
gcc/loop.h
+1
-1
No files found.
gcc/loop.c
View file @
82ee5e63
...
...
@@ -308,8 +308,8 @@ static int replace_loop_reg PARAMS ((rtx *, void *));
static
void
note_reg_stored
PARAMS
((
rtx
,
rtx
,
void
*
));
static
void
try_copy_prop
PARAMS
((
const
struct
loop
*
,
rtx
,
unsigned
int
));
static
int
replace_label
PARAMS
((
rtx
*
,
void
*
));
static
void
check_insn_for_givs
PARAMS
((
struct
loop
*
,
rtx
,
int
,
int
));
static
void
check_insn_for_bivs
PARAMS
((
struct
loop
*
,
rtx
,
int
,
int
));
static
rtx
check_insn_for_givs
PARAMS
((
struct
loop
*
,
rtx
,
int
,
int
));
static
rtx
check_insn_for_bivs
PARAMS
((
struct
loop
*
,
rtx
,
int
,
int
));
typedef
struct
rtx_and_int
{
rtx
r
;
...
...
@@ -3730,7 +3730,7 @@ for_each_insn_in_loop (loop, fncall)
p
!=
NULL_RTX
;
p
=
next_insn_in_loop
(
loop
,
p
))
{
fncall
(
loop
,
p
,
maybe_multiple
,
not_every_iteration
);
p
=
fncall
(
loop
,
p
,
not_every_iteration
,
not_every_iteration
);
/* Past CODE_LABEL, we get to insns that may be executed multiple
times. The only way we can be sure that they can't is if every
...
...
@@ -5068,7 +5068,7 @@ egress:
}
/*Record all basic induction variables calculated in the insn. */
static
void
static
rtx
check_insn_for_bivs
(
loop
,
p
,
not_every_iteration
,
maybe_multiple
)
struct
loop
*
loop
;
rtx
p
;
...
...
@@ -5112,12 +5112,13 @@ check_insn_for_bivs (loop, p, not_every_iteration, maybe_multiple)
REG_IV_TYPE
(
REGNO
(
dest_reg
))
=
NOT_BASIC_INDUCT
;
}
}
return
p
;
}
/* Record all givs calculated in the insn.
A register is a giv if: it is only set once, it is a function of a
biv and a constant (or invariant), and it is not a biv. */
static
void
static
rtx
check_insn_for_givs
(
loop
,
p
,
not_every_iteration
,
maybe_multiple
)
struct
loop
*
loop
;
rtx
p
;
...
...
@@ -5141,7 +5142,7 @@ check_insn_for_givs (loop, p, not_every_iteration, maybe_multiple)
dest_reg
=
SET_DEST
(
set
);
if
(
REGNO
(
dest_reg
)
<
FIRST_PSEUDO_REGISTER
)
return
;
return
p
;
if
(
/* SET_SRC is a giv. */
(
general_induction_var
(
loop
,
SET_SRC
(
set
),
&
src_reg
,
&
add_val
,
...
...
@@ -5196,7 +5197,7 @@ check_insn_for_givs (loop, p, not_every_iteration, maybe_multiple)
if
(
GET_CODE
(
p
)
==
INSN
||
GET_CODE
(
p
)
==
JUMP_INSN
||
GET_CODE
(
p
)
==
CODE_LABEL
)
update_giv_derive
(
loop
,
p
);
return
p
;
}
/* Return 1 if X is a valid source for an initial value (or as value being
...
...
gcc/loop.h
View file @
82ee5e63
...
...
@@ -247,6 +247,6 @@ void emit_unrolled_add PARAMS ((rtx, rtx, rtx));
int
back_branch_in_range_p
PARAMS
((
const
struct
loop
*
,
rtx
));
int
loop_insn_first_p
PARAMS
((
rtx
,
rtx
));
typedef
void
(
*
loop_insn_callback
)
PARAMS
((
struct
loop
*
,
rtx
,
int
,
int
));
typedef
rtx
(
*
loop_insn_callback
)
PARAMS
((
struct
loop
*
,
rtx
,
int
,
int
));
void
for_each_insn_in_loop
PARAMS
((
struct
loop
*
,
loop_insn_callback
));
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