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
a9d27cb2
Commit
a9d27cb2
authored
Aug 14, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(copy_loop_body): Don't assume (pc) can be on either leg of jump; use
invert_exp and redirect_exp instead. From-SVN: r1843
parent
4214a505
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 @
a9d27cb2
...
@@ -1662,23 +1662,18 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration,
...
@@ -1662,23 +1662,18 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration,
int
fall_through
;
int
fall_through
;
/* Never map the label in this case. */
/* Never map the label in this case. */
pattern
=
copy_rtx
(
PATTERN
(
insn
));
rtx
tmp_
pattern
=
copy_rtx
(
PATTERN
(
insn
));
/* Assume a conditional branch, since the code above
/* Set the fall through case to the exit label. If we
does not let unconditional branches be copied. */
can't do this in place, abort for now. Maybe
if
(
!
condjump_p
(
insn
))
we can do something more sophisticated eventually. */
if
(
!
invert_exp
(
tmp_pattern
,
insn
)
||
!
redirect_exp
(
&
tmp_pattern
,
JUMP_LABEL
(
insn
),
exit_label
,
insn
))
abort
();
abort
();
fall_through
=
(
XEXP
(
SET_SRC
(
PATTERN
(
insn
)),
2
)
==
pc_rtx
)
+
1
;
/* Set the fall through case to the exit label. Must
pattern
=
tmp_pattern
;
create a new label_ref since they can't be shared. */
XEXP
(
SET_SRC
(
pattern
),
fall_through
)
=
gen_rtx
(
LABEL_REF
,
VOIDmode
,
exit_label
);
/* Set the original branch case to fall through. */
XEXP
(
SET_SRC
(
pattern
),
3
-
fall_through
)
=
pc_rtx
;
}
}
else
else
pattern
=
copy_rtx_and_substitute
(
PATTERN
(
insn
),
map
);
pattern
=
copy_rtx_and_substitute
(
PATTERN
(
insn
),
map
);
...
...
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