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
e33477be
Commit
e33477be
authored
Jul 05, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(duplicate_loop_exit_test): Handle SUBREG in SET_DEST of loop exit
test statements. From-SVN: r7654
parent
5af91171
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
gcc/jump.c
+9
-8
No files found.
gcc/jump.c
View file @
e33477be
...
...
@@ -2041,7 +2041,7 @@ static int
duplicate_loop_exit_test
(
loop_start
)
rtx
loop_start
;
{
rtx
insn
,
set
,
p
,
link
;
rtx
insn
,
set
,
reg
,
p
,
link
;
rtx
copy
=
0
;
int
num_insns
=
0
;
rtx
exitcode
=
NEXT_INSN
(
JUMP_LABEL
(
next_nonnote_insn
(
loop_start
)));
...
...
@@ -2098,12 +2098,14 @@ duplicate_loop_exit_test (loop_start)
for
(
insn
=
exitcode
;
insn
!=
lastexit
;
insn
=
NEXT_INSN
(
insn
))
if
(
GET_CODE
(
insn
)
==
INSN
&&
(
set
=
single_set
(
insn
))
!=
0
&&
GET_CODE
(
SET_DEST
(
set
))
==
REG
&&
REGNO
(
SET_DEST
(
set
))
>=
FIRST_PSEUDO_REGISTER
&&
regno_first_uid
[
REGNO
(
SET_DEST
(
set
))]
==
INSN_UID
(
insn
))
&&
((
reg
=
SET_DEST
(
set
),
GET_CODE
(
reg
)
==
REG
)
||
(
GET_CODE
(
reg
)
==
SUBREG
&&
(
reg
=
SUBREG_REG
(
reg
),
GET_CODE
(
reg
)
==
REG
)))
&&
REGNO
(
reg
)
>=
FIRST_PSEUDO_REGISTER
&&
regno_first_uid
[
REGNO
(
reg
)]
==
INSN_UID
(
insn
))
{
for
(
p
=
NEXT_INSN
(
insn
);
p
!=
lastexit
;
p
=
NEXT_INSN
(
p
))
if
(
regno_last_uid
[
REGNO
(
SET_DEST
(
set
)
)]
==
INSN_UID
(
p
))
if
(
regno_last_uid
[
REGNO
(
reg
)]
==
INSN_UID
(
p
))
break
;
if
(
p
!=
lastexit
)
...
...
@@ -2116,10 +2118,9 @@ duplicate_loop_exit_test (loop_start)
bzero
((
char
*
)
reg_map
,
max_reg
*
sizeof
(
rtx
));
}
REG_LOOP_TEST_P
(
SET_DEST
(
set
)
)
=
1
;
REG_LOOP_TEST_P
(
reg
)
=
1
;
reg_map
[
REGNO
(
SET_DEST
(
set
))]
=
gen_reg_rtx
(
GET_MODE
(
SET_DEST
(
set
)));
reg_map
[
REGNO
(
reg
)]
=
gen_reg_rtx
(
GET_MODE
(
reg
));
}
}
...
...
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