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
40a32862
Commit
40a32862
authored
Sep 10, 2009
by
Richard Henderson
Committed by
Richard Henderson
Sep 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tree-cfg.c (is_ctrl_stmt): Use a switch.
From-SVN: r151605
parent
8e7c5fdd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
gcc/ChangeLog
+2
-0
gcc/tree-cfg.c
+11
-5
No files found.
gcc/ChangeLog
View file @
40a32862
2009-09-10 Richard Henderson <rth@redhat.com>
2009-09-10 Richard Henderson <rth@redhat.com>
* tree-cfg.c (is_ctrl_stmt): Use a switch.
* tree-cfg.c (gimple_can_merge_blocks_p): Move label and
* tree-cfg.c (gimple_can_merge_blocks_p): Move label and
loop latch tests earlier.
loop latch tests earlier.
...
...
gcc/tree-cfg.c
View file @
40a32862
...
@@ -2735,11 +2735,17 @@ gimple_cfg2vcg (FILE *file)
...
@@ -2735,11 +2735,17 @@ gimple_cfg2vcg (FILE *file)
bool
bool
is_ctrl_stmt
(
gimple
t
)
is_ctrl_stmt
(
gimple
t
)
{
{
return
gimple_code
(
t
)
==
GIMPLE_COND
switch
(
gimple_code
(
t
))
||
gimple_code
(
t
)
==
GIMPLE_SWITCH
{
||
gimple_code
(
t
)
==
GIMPLE_GOTO
case
GIMPLE_COND
:
||
gimple_code
(
t
)
==
GIMPLE_RETURN
case
GIMPLE_SWITCH
:
||
gimple_code
(
t
)
==
GIMPLE_RESX
;
case
GIMPLE_GOTO
:
case
GIMPLE_RETURN
:
case
GIMPLE_RESX
:
return
true
;
default:
return
false
;
}
}
}
...
...
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