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
189ae0f4
Commit
189ae0f4
authored
Mar 08, 2002
by
Jan Hubicka
Committed by
Jan Hubicka
Mar 08, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* recog.c (peephole2_optimize): Re-distribute EH edges.
From-SVN: r50452
parent
07fc65c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletions
+26
-1
gcc/ChangeLog
+4
-0
gcc/recog.c
+22
-1
No files found.
gcc/ChangeLog
View file @
189ae0f4
Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
* recog.c (peephole2_optimize): Re-distribute EH edges.
2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
* expr.c (expand_expr): Use unsave lang hook.
...
...
gcc/recog.c
View file @
189ae0f4
...
...
@@ -3054,6 +3054,7 @@ peephole2_optimize (dump_file)
{
rtx
try
;
int
match_len
;
rtx
note
;
/* Record this insn. */
if
(
--
peep2_current
<
0
)
...
...
@@ -3105,7 +3106,6 @@ peephole2_optimize (dump_file)
note
=
XEXP
(
note
,
1
))
switch
(
REG_NOTE_KIND
(
note
))
{
case
REG_EH_REGION
:
case
REG_NORETURN
:
case
REG_SETJMP
:
case
REG_ALWAYS_RETURN
:
...
...
@@ -3139,6 +3139,27 @@ peephole2_optimize (dump_file)
try
=
emit_insn_after
(
try
,
peep2_insn_data
[
i
].
insn
);
delete_insn_chain
(
insn
,
peep2_insn_data
[
i
].
insn
);
/* Re-insert the EH_REGION notes. */
if
(
try
==
bb
->
end
&&
(
note
=
find_reg_note
(
peep2_insn_data
[
i
].
insn
,
REG_EH_REGION
,
NULL_RTX
)))
{
rtx
x
;
for
(
x
=
NEXT_INSN
(
peep2_insn_data
[
i
].
insn
);
x
!=
NEXT_INSN
(
try
);
x
=
NEXT_INSN
(
x
))
if
(
GET_CODE
(
x
)
==
CALL_INSN
||
(
flag_non_call_exceptions
&&
may_trap_p
(
PATTERN
(
x
))))
REG_NOTES
(
x
)
=
gen_rtx_EXPR_LIST
(
REG_EH_REGION
,
XEXP
(
note
,
0
),
REG_NOTES
(
x
));
}
/* Converting possibly trapping insn to non-trapping is
possible. Zap dummy outgoing edges. */
if
(
try
==
bb
->
end
)
purge_dead_edges
(
bb
);
#ifdef HAVE_conditional_execution
/* With conditional execution, we cannot back up the
live information so easily, since the conditional
...
...
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