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
02cd8797
Commit
02cd8797
authored
May 10, 1993
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(copy_loop_body): Copy REG_NOTES during main loop
instead of afterwards. From-SVN: r4416
parent
819f43e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
gcc/unroll.c
+9
-14
No files found.
gcc/unroll.c
View file @
02cd8797
...
@@ -1609,7 +1609,9 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration,
...
@@ -1609,7 +1609,9 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration,
pattern
=
copy_rtx_and_substitute
(
pattern
,
map
);
pattern
=
copy_rtx_and_substitute
(
pattern
,
map
);
copy
=
emit_insn
(
pattern
);
copy
=
emit_insn
(
pattern
);
}
}
/* REG_NOTES will be copied later. */
/* We must copy the REG_NOTES now, because the register mapping
might change later. */
REG_NOTES
(
copy
)
=
copy_rtx_and_substitute
(
REG_NOTES
(
insn
),
map
);
#ifdef HAVE_cc0
#ifdef HAVE_cc0
/* If this insn is setting CC0, it may need to look at
/* If this insn is setting CC0, it may need to look at
...
@@ -1653,6 +1655,9 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration,
...
@@ -1653,6 +1655,9 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration,
case
JUMP_INSN
:
case
JUMP_INSN
:
pattern
=
copy_rtx_and_substitute
(
PATTERN
(
insn
),
map
);
pattern
=
copy_rtx_and_substitute
(
PATTERN
(
insn
),
map
);
copy
=
emit_jump_insn
(
pattern
);
copy
=
emit_jump_insn
(
pattern
);
/* We must copy the REG_NOTES now, because the register mapping
might change later. */
REG_NOTES
(
copy
)
=
copy_rtx_and_substitute
(
REG_NOTES
(
insn
),
map
);
if
(
JUMP_LABEL
(
insn
)
==
start_label
&&
insn
==
copy_end
if
(
JUMP_LABEL
(
insn
)
==
start_label
&&
insn
==
copy_end
&&
!
last_iteration
)
&&
!
last_iteration
)
...
@@ -1754,6 +1759,9 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration,
...
@@ -1754,6 +1759,9 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration,
case
CALL_INSN
:
case
CALL_INSN
:
pattern
=
copy_rtx_and_substitute
(
PATTERN
(
insn
),
map
);
pattern
=
copy_rtx_and_substitute
(
PATTERN
(
insn
),
map
);
copy
=
emit_call_insn
(
pattern
);
copy
=
emit_call_insn
(
pattern
);
/* We must copy the REG_NOTES now, because the register mapping
might change later. */
REG_NOTES
(
copy
)
=
copy_rtx_and_substitute
(
REG_NOTES
(
insn
),
map
);
#ifdef HAVE_cc0
#ifdef HAVE_cc0
if
(
cc0_insn
)
if
(
cc0_insn
)
...
@@ -1804,19 +1812,6 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration,
...
@@ -1804,19 +1812,6 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration,
}
}
while
(
insn
!=
copy_end
);
while
(
insn
!=
copy_end
);
/* Now copy the REG_NOTES. */
insn
=
copy_start
;
do
{
insn
=
NEXT_INSN
(
insn
);
if
((
GET_CODE
(
insn
)
==
INSN
||
GET_CODE
(
insn
)
==
JUMP_INSN
||
GET_CODE
(
insn
)
==
CALL_INSN
)
&&
map
->
insn_map
[
INSN_UID
(
insn
)])
REG_NOTES
(
map
->
insn_map
[
INSN_UID
(
insn
)])
=
copy_rtx_and_substitute
(
REG_NOTES
(
insn
),
map
);
}
while
(
insn
!=
copy_end
);
/* There may be notes between copy_notes_from and loop_end. Emit a copy of
/* There may be notes between copy_notes_from and loop_end. Emit a copy of
each of these notes here, since there may be some important ones, such as
each of these notes here, since there may be some important ones, such as
NOTE_INSN_BLOCK_END notes, in this group. We don't do this on the last
NOTE_INSN_BLOCK_END notes, in this group. We don't do this on the last
...
...
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