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
fdccb6df
Commit
fdccb6df
authored
Aug 13, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(find_and_verify_loops): Set dest_loop only if JUMP_LABEL (insn) is
non-zero. From-SVN: r10210
parent
d6b3cb10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
gcc/loop.c
+11
-9
No files found.
gcc/loop.c
View file @
fdccb6df
...
@@ -2338,8 +2338,8 @@ find_and_verify_loops (f)
...
@@ -2338,8 +2338,8 @@ find_and_verify_loops (f)
{
{
rtx
p
;
rtx
p
;
rtx
our_next
=
next_real_insn
(
insn
);
rtx
our_next
=
next_real_insn
(
insn
);
int
dest_loop
=
uid_loop_num
[
INSN_UID
(
JUMP_LABEL
(
insn
))]
;
int
dest_loop
;
int
outer_loop
;
int
outer_loop
=
-
1
;
/* Go backwards until we reach the start of the loop, a label,
/* Go backwards until we reach the start of the loop, a label,
or a JUMP_INSN. */
or a JUMP_INSN. */
...
@@ -2354,15 +2354,17 @@ find_and_verify_loops (f)
...
@@ -2354,15 +2354,17 @@ find_and_verify_loops (f)
/* Check for the case where we have a jump to an inner nested
/* Check for the case where we have a jump to an inner nested
loop, and do not perform the optimization in that case. */
loop, and do not perform the optimization in that case. */
if
(
dest_loop
!=
-
1
)
if
(
JUMP_LABEL
(
insn
)
)
{
{
for
(
outer_loop
=
dest_loop
;
outer_loop
!=
-
1
;
dest_loop
=
uid_loop_num
[
INSN_UID
(
JUMP_LABEL
(
insn
))];
outer_loop
=
loop_outer_loop
[
outer_loop
])
if
(
dest_loop
!=
-
1
)
if
(
outer_loop
==
this_loop_num
)
{
break
;
for
(
outer_loop
=
dest_loop
;
outer_loop
!=
-
1
;
outer_loop
=
loop_outer_loop
[
outer_loop
])
if
(
outer_loop
==
this_loop_num
)
break
;
}
}
}
else
outer_loop
=
-
1
;
/* If we stopped on a JUMP_INSN to the next insn after INSN,
/* If we stopped on a JUMP_INSN to the next insn after INSN,
we have a block of code to try to move.
we have a block of code to try to move.
...
...
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