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
b5f89788
Commit
b5f89788
authored
May 12, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(unroll_loop): Don't move reg if used in copy_end and that is a
JUMP_INSN. From-SVN: r9646
parent
454e0249
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
gcc/unroll.c
+9
-9
No files found.
gcc/unroll.c
View file @
b5f89788
...
@@ -728,18 +728,18 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before,
...
@@ -728,18 +728,18 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before,
int
copy_start_luid
=
INSN_LUID
(
copy_start
);
int
copy_start_luid
=
INSN_LUID
(
copy_start
);
int
copy_end_luid
=
INSN_LUID
(
copy_end
);
int
copy_end_luid
=
INSN_LUID
(
copy_end
);
for
(
j
=
FIRST_PSEUDO_REGISTER
;
j
<
maxregnum
;
++
j
)
/* If a register is used in the jump insn, we must not duplicate it
{
since it will also be used outside the loop. */
int
first_uid
=
regno_first_uid
[
j
];
if
(
GET_CODE
(
copy_end
)
==
JUMP_INSN
)
int
last_uid
=
regno_last_uid
[
j
]
;
copy_end_luid
--
;
if
(
first_uid
>
0
&&
first_uid
<=
max_uid_for_loop
for
(
j
=
FIRST_PSEUDO_REGISTER
;
j
<
maxregnum
;
++
j
)
&&
uid_luid
[
first_uid
]
>=
copy_start_luid
if
(
regno_first_uid
[
j
]
>
0
&&
regno_first_uid
[
j
]
<=
max_uid_for_loop
&&
last_uid
>
0
&&
last_uid
<=
max_uid_for_loop
&&
uid_luid
[
regno_first_uid
[
j
]]
>=
copy_start_luid
&&
uid_luid
[
last_uid
]
<=
copy_end_luid
)
&&
regno_last_uid
[
j
]
>
0
&&
regno_last_uid
[
j
]
<=
max_uid_for_loop
&&
uid_luid
[
regno_last_uid
[
j
]]
<=
copy_end_luid
)
local_regno
[
j
]
=
1
;
local_regno
[
j
]
=
1
;
}
}
}
/* If this loop requires exit tests when unrolled, check to see if we
/* If this loop requires exit tests when unrolled, check to see if we
can precondition the loop so as to make the exit tests unnecessary.
can precondition the loop so as to make the exit tests unnecessary.
...
...
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