Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
de7a980e
Commit
de7a980e
authored
Oct 07, 2015
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't adjust the reopt threshold depending on the block count
parent
7d6979e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
src/codegen/ast_interpreter.cpp
src/codegen/ast_interpreter.cpp
+2
-6
No files found.
src/codegen/ast_interpreter.cpp
View file @
de7a980e
...
...
@@ -1729,12 +1729,8 @@ Box* astInterpretFunction(CLFunction* clfunc, Box* closure, Box* generator, Box*
assert
((
!
globals
)
==
source_info
->
scoping
->
areGlobalsFromModule
());
bool
can_reopt
=
ENABLE_REOPT
&&
!
FORCE_INTERPRETER
;
// If the cfg hasn't been computed yet, just conservatively say that it will be a big function.
// It shouldn't matter, since the cfg should only be NULL if this is the first execution of this
// function.
int
num_blocks
=
source_info
->
cfg
?
source_info
->
cfg
->
blocks
.
size
()
:
10000
;
int
threshold
=
num_blocks
<=
20
?
(
REOPT_THRESHOLD_BASELINE
/
3
)
:
REOPT_THRESHOLD_BASELINE
;
if
(
unlikely
(
can_reopt
&&
(
FORCE_OPTIMIZE
||
!
ENABLE_INTERPRETER
||
clfunc
->
times_interpreted
>
threshold
)))
{
if
(
unlikely
(
can_reopt
&&
(
FORCE_OPTIMIZE
||
!
ENABLE_INTERPRETER
||
clfunc
->
times_interpreted
>
REOPT_THRESHOLD_BASELINE
)))
{
clfunc
->
times_interpreted
=
0
;
EffortLevel
new_effort
=
EffortLevel
::
MODERATE
;
...
...
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