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
066b8354
Commit
066b8354
authored
Nov 06, 2012
by
Aldy Hernandez
Committed by
Richard Henderson
Nov 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cfghooks.c (copy_bbs): Handle a null loop_father.
From-SVN: r193270
parent
27f7e1c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
gcc/ChangeLog
+2
-0
gcc/cfghooks.c
+9
-6
No files found.
gcc/ChangeLog
View file @
066b8354
2012
-
11
-
06
Aldy
Hernandez
<
aldyh
@redhat
.
com
>
*
cfghooks
.
c
(
copy_bbs
)
:
Handle
a
null
loop_father
.
*
cgraph
.
c
(
cgraph_debug_gimple_stmt
)
:
Handle
a
null
current_function_decl
.
gcc/cfghooks.c
View file @
066b8354
...
...
@@ -1258,12 +1258,15 @@ copy_bbs (basic_block *bbs, unsigned n, basic_block *new_bbs,
new_bb
=
new_bbs
[
i
]
=
duplicate_block
(
bb
,
NULL
,
after
);
after
=
new_bb
;
bb
->
flags
|=
BB_DUPLICATED
;
/* Possibly set loop header. */
if
(
bb
->
loop_father
->
header
==
bb
&&
bb
->
loop_father
!=
base
)
new_bb
->
loop_father
->
header
=
new_bb
;
/* Or latch. */
if
(
bb
->
loop_father
->
latch
==
bb
&&
bb
->
loop_father
!=
base
)
new_bb
->
loop_father
->
latch
=
new_bb
;
if
(
bb
->
loop_father
)
{
/* Possibly set loop header. */
if
(
bb
->
loop_father
->
header
==
bb
&&
bb
->
loop_father
!=
base
)
new_bb
->
loop_father
->
header
=
new_bb
;
/* Or latch. */
if
(
bb
->
loop_father
->
latch
==
bb
&&
bb
->
loop_father
!=
base
)
new_bb
->
loop_father
->
latch
=
new_bb
;
}
}
/* Set dominators. */
...
...
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