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
63a73071
Commit
63a73071
authored
Aug 04, 2011
by
David Li
Committed by
Xinliang David Li
Aug 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a bug in cfg fixup
From-SVN: r177313
parent
90037898
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
gcc/ChangeLog
+5
-0
gcc/tree-optimize.c
+4
-0
No files found.
gcc/ChangeLog
View file @
63a73071
2011-08-03 David Li <davidxl@google.com>
* tree-optimize.c (execute_fixup_cfg): Fix up entry
outgoing edge counts after inlining.
2011-08-03 David Li <davidxl@google.com>
* profile.c (compute_branch_probabilities): Compute
function frequency after profile annotation.
...
...
gcc/tree-optimize.c
View file @
63a73071
...
...
@@ -256,6 +256,10 @@ execute_fixup_cfg (void)
EXIT_BLOCK_PTR
->
count
=
(
EXIT_BLOCK_PTR
->
count
*
count_scale
+
REG_BR_PROB_BASE
/
2
)
/
REG_BR_PROB_BASE
;
FOR_EACH_EDGE
(
e
,
ei
,
ENTRY_BLOCK_PTR
->
succs
)
e
->
count
=
(
e
->
count
*
count_scale
+
REG_BR_PROB_BASE
/
2
)
/
REG_BR_PROB_BASE
;
FOR_EACH_BB
(
bb
)
{
bb
->
count
=
(
bb
->
count
*
count_scale
...
...
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