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
6a7ca996
Commit
6a7ca996
authored
Jul 23, 2001
by
Richard Henderson
Committed by
Richard Henderson
Jul 23, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
From-SVN: r44287
parent
82efa2e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
gcc/ChangeLog
+4
-0
gcc/flow.c
+6
-5
No files found.
gcc/ChangeLog
View file @
6a7ca996
2001-07-23 Richard Henderson <rth@redhat.com>
* flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
2001-07-23 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300-protos.h: Add a prototype for
...
...
gcc/flow.c
View file @
6a7ca996
...
...
@@ -3073,17 +3073,18 @@ try_simplify_condjump (cbranch_block)
fprintf
(
rtl_dump_file
,
"Simplifying condjump %i around jump %i
\n
"
,
INSN_UID
(
cbranch_insn
),
INSN_UID
(
jump_block
->
end
));
/* Success. Update the CFG to match. */
/* Success. Update the CFG to match. Note that after this point
the edge variable names appear backwards; the redirection is done
this way to preserve edge profile data. */
redirect_edge_succ
(
cbranch_jump_edge
,
cbranch_dest_block
);
redirect_edge_succ
(
cbranch_fallthru_edge
,
jump_dest_block
);
cbranch_jump_edge
->
flags
|=
EDGE_FALLTHRU
;
cbranch_fallthru_edge
->
flags
&=
~
EDGE_FALLTHRU
;
/* Delete the block with the unconditional jump, and clean up the mess. */
flow_delete_block
(
jump_block
);
/* Selectively unlink the sequence. */
if
(
cbranch_jump_edge
->
src
->
end
!=
PREV_INSN
(
cbranch_jump_edge
->
dest
->
head
))
flow_delete_insn_chain
(
NEXT_INSN
(
cbranch_jump_edge
->
src
->
end
),
PREV_INSN
(
cbranch_jump_edge
->
dest
->
head
));
tidy_fallthru_edge
(
cbranch_jump_edge
,
cbranch_block
,
cbranch_dest_block
);
return
true
;
}
...
...
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