Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Issue 501553005: Scale invocation count by the number of BBs in the flow-graph of a method. (Closed)

Created:
6 years, 3 months ago by Anders Johnsen
Modified:
6 years, 3 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Scale invocation count by the number of BBs in the flow-graph of a method. BUG= R=vegorov@google.com Committed: https://code.google.com/p/dart/source/detail?r=39698

Patch Set 1 #

Patch Set 2 : Moved to a*BB^2+b*BB+c #

Patch Set 3 : Move back to scale*BB start #

Patch Set 4 : Rebase #

Total comments: 12

Patch Set 5 : Refactor and port to archs. #

Total comments: 17

Patch Set 6 : Cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -49 lines) Patch
M runtime/vm/flow_graph_compiler.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 3 4 5 2 chunks +22 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler_arm.cc View 1 2 3 4 5 2 chunks +4 lines, -9 lines 0 comments Download
M runtime/vm/flow_graph_compiler_arm64.cc View 1 2 3 4 5 2 chunks +4 lines, -9 lines 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 1 2 3 4 5 2 chunks +5 lines, -10 lines 0 comments Download
M runtime/vm/flow_graph_compiler_mips.cc View 1 2 3 4 5 2 chunks +4 lines, -9 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 2 3 4 5 2 chunks +6 lines, -12 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Anders Johnsen
ajohnsen@google.com changed reviewers: + fschneider@chromium.org, vegorov@google.com
6 years, 3 months ago (2014-08-28 08:34:07 UTC) #1
Anders Johnsen
Slava, Florian, please add other reviews as you see fit. If it's approved, I'll port ...
6 years, 3 months ago (2014-08-28 08:34:07 UTC) #2
Vyacheslav Egorov (Google)
vegorov@google.com changed reviewers: + srdjan@google.com
6 years, 3 months ago (2014-08-28 14:26:40 UTC) #3
Vyacheslav Egorov (Google)
I think this heuristic tweak makes sense to me. WDYT, Srdjan? https://codereview.chromium.org/501553005/diff/60001/runtime/vm/flow_graph_compiler_ia32.cc File runtime/vm/flow_graph_compiler_ia32.cc (right): ...
6 years, 3 months ago (2014-08-28 14:26:40 UTC) #4
Anders Johnsen
https://codereview.chromium.org/501553005/diff/60001/runtime/vm/flow_graph_compiler_ia32.cc File runtime/vm/flow_graph_compiler_ia32.cc (right): https://codereview.chromium.org/501553005/diff/60001/runtime/vm/flow_graph_compiler_ia32.cc#newcode32 runtime/vm/flow_graph_compiler_ia32.cc:32: DEFINE_FLAG(int, optimization_counter_scale, 2270, On 2014/08/28 14:26:40, Vyacheslav Egorov (Google) ...
6 years, 3 months ago (2014-08-28 14:44:16 UTC) #5
srdjan
https://codereview.chromium.org/501553005/diff/60001/runtime/vm/flow_graph_compiler_ia32.cc File runtime/vm/flow_graph_compiler_ia32.cc (right): https://codereview.chromium.org/501553005/diff/60001/runtime/vm/flow_graph_compiler_ia32.cc#newcode32 runtime/vm/flow_graph_compiler_ia32.cc:32: DEFINE_FLAG(int, optimization_counter_scale, 2270, On 2014/08/28 14:44:16, Anders Johnsen wrote: ...
6 years, 3 months ago (2014-08-28 16:49:16 UTC) #6
srdjan
I also think this CL should make sense. What about OSR threshold? Would it be ...
6 years, 3 months ago (2014-08-28 17:39:10 UTC) #7
Vyacheslav Egorov (Google)
https://codereview.chromium.org/501553005/diff/60001/runtime/vm/flow_graph_compiler_ia32.cc File runtime/vm/flow_graph_compiler_ia32.cc (right): https://codereview.chromium.org/501553005/diff/60001/runtime/vm/flow_graph_compiler_ia32.cc#newcode32 runtime/vm/flow_graph_compiler_ia32.cc:32: DEFINE_FLAG(int, optimization_counter_scale, 2270, I would like to clarify where ...
6 years, 3 months ago (2014-08-28 18:06:49 UTC) #8
Anders Johnsen
Changed 2270->2000 (results appear very similar) Refactored out the threshold. Ported to all archs. PTAL. ...
6 years, 3 months ago (2014-08-29 07:11:38 UTC) #9
kasperl
kasperl@google.com changed reviewers: + kasperl@google.com
6 years, 3 months ago (2014-08-29 10:52:26 UTC) #10
kasperl
Clearly you meant 2269. https://codereview.chromium.org/501553005/diff/80001/runtime/vm/code_generator.cc File runtime/vm/code_generator.cc (right): https://codereview.chromium.org/501553005/diff/80001/runtime/vm/code_generator.cc#newcode38 runtime/vm/code_generator.cc:38: DEFINE_FLAG(int, optimization_counter_scale, 2000, 2269
6 years, 3 months ago (2014-08-29 10:52:26 UTC) #11
Vyacheslav Egorov (Google)
https://codereview.chromium.org/501553005/diff/80001/runtime/vm/code_generator.cc File runtime/vm/code_generator.cc (right): https://codereview.chromium.org/501553005/diff/80001/runtime/vm/code_generator.cc#newcode40 runtime/vm/code_generator.cc:40: DEFINE_FLAG(int, min_optimization_counter_threshold, 5000, Just move these flags to the ...
6 years, 3 months ago (2014-08-29 11:17:19 UTC) #12
Anders Johnsen
PTAL https://codereview.chromium.org/501553005/diff/80001/runtime/vm/code_generator.cc File runtime/vm/code_generator.cc (right): https://codereview.chromium.org/501553005/diff/80001/runtime/vm/code_generator.cc#newcode40 runtime/vm/code_generator.cc:40: DEFINE_FLAG(int, min_optimization_counter_threshold, 5000, On 2014/08/29 11:17:18, Vyacheslav Egorov ...
6 years, 3 months ago (2014-08-29 11:56:28 UTC) #13
Vyacheslav Egorov (Google)
lgtm
6 years, 3 months ago (2014-08-29 12:16:59 UTC) #14
Anders Johnsen
6 years, 3 months ago (2014-08-29 12:51:18 UTC) #15
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as 39698 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698