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
3ff51205
Commit
3ff51205
authored
Jan 15, 2001
by
Aldy Hernandez
Committed by
Aldy Hernandez
Jan 15, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new option to disable guessing of branch prediction
From-SVN: r39052
parent
3cf96b52
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletions
+21
-1
gcc/ChangeLog
+10
-0
gcc/flags.h
+3
-0
gcc/toplev.c
+8
-1
No files found.
gcc/ChangeLog
View file @
3ff51205
2001-01-12 Aldy Hernandez <aldyh@redhat.com>
* toplev.c (flag_guess_branch_prob): New.
(f_options): Add guess-branch-probability option.
(rest_of_decl_compilation): Only estimate branch probability if
flag set.
(main): set flag_guess_branch_prob.
* flags.h (flag_guess_branch_prob): New.
2001-01-15 DJ Delorie <dj@redhat.com>
2001-01-15 DJ Delorie <dj@redhat.com>
* gcc.texi (Makefile): Add documentation for Makefile targets.
* gcc.texi (Makefile): Add documentation for Makefile targets.
...
...
gcc/flags.h
View file @
3ff51205
...
@@ -531,6 +531,9 @@ extern int flag_instrument_function_entry_exit;
...
@@ -531,6 +531,9 @@ extern int flag_instrument_function_entry_exit;
/* Perform a peephole pass before sched2. */
/* Perform a peephole pass before sched2. */
extern
int
flag_peephole2
;
extern
int
flag_peephole2
;
/* Try to guess branch probablities. */
extern
int
flag_guess_branch_prob
;
/* -fbounded-pointers causes gcc to compile pointers as composite
/* -fbounded-pointers causes gcc to compile pointers as composite
objects occupying three words: the pointer value, the base address
objects occupying three words: the pointer value, the base address
of the referent object, and the address immediately beyond the end
of the referent object, and the address immediately beyond the end
...
...
gcc/toplev.c
View file @
3ff51205
...
@@ -868,6 +868,9 @@ int flag_no_ident = 0;
...
@@ -868,6 +868,9 @@ int flag_no_ident = 0;
/* This will perform a peephole pass before sched2. */
/* This will perform a peephole pass before sched2. */
int
flag_peephole2
=
0
;
int
flag_peephole2
=
0
;
/* This will try to guess branch probabilities. */
int
flag_guess_branch_prob
=
0
;
/* -fbounded-pointers causes gcc to compile pointers as composite
/* -fbounded-pointers causes gcc to compile pointers as composite
objects occupying three words: the pointer value, the base address
objects occupying three words: the pointer value, the base address
of the referent object, and the address immediately beyond the end
of the referent object, and the address immediately beyond the end
...
@@ -1136,6 +1139,8 @@ lang_independent_options f_options[] =
...
@@ -1136,6 +1139,8 @@ lang_independent_options f_options[] =
"Process #ident directives"
},
"Process #ident directives"
},
{
"peephole2"
,
&
flag_peephole2
,
1
,
{
"peephole2"
,
&
flag_peephole2
,
1
,
"Enables an rtl peephole pass run before sched2"
},
"Enables an rtl peephole pass run before sched2"
},
{
"guess-branch-probability"
,
&
flag_guess_branch_prob
,
1
,
"Enables guessing of branch probabilities"
},
{
"math-errno"
,
&
flag_errno_math
,
1
,
{
"math-errno"
,
&
flag_errno_math
,
1
,
"Set errno after built-in math functions"
},
"Set errno after built-in math functions"
},
{
"bounded-pointers"
,
&
flag_bounded_pointers
,
1
,
{
"bounded-pointers"
,
&
flag_bounded_pointers
,
1
,
...
@@ -3253,7 +3258,8 @@ rest_of_compilation (decl)
...
@@ -3253,7 +3258,8 @@ rest_of_compilation (decl)
flow_loops_find
(
&
loops
,
LOOP_TREE
);
flow_loops_find
(
&
loops
,
LOOP_TREE
);
/* Estimate using heuristics if no profiling info is available. */
/* Estimate using heuristics if no profiling info is available. */
estimate_probability
(
&
loops
);
if
(
flag_guess_branch_prob
)
estimate_probability
(
&
loops
);
if
(
rtl_dump_file
)
if
(
rtl_dump_file
)
flow_loops_dump
(
&
loops
,
rtl_dump_file
,
NULL
,
0
);
flow_loops_dump
(
&
loops
,
rtl_dump_file
,
NULL
,
0
);
...
@@ -4636,6 +4642,7 @@ main (argc, argv)
...
@@ -4636,6 +4642,7 @@ main (argc, argv)
#ifdef CAN_DEBUG_WITHOUT_FP
#ifdef CAN_DEBUG_WITHOUT_FP
flag_omit_frame_pointer
=
1
;
flag_omit_frame_pointer
=
1
;
#endif
#endif
flag_guess_branch_prob
=
1
;
}
}
if
(
optimize
>=
2
)
if
(
optimize
>=
2
)
...
...
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