summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorDavid Srbecky <dsrbecky@google.com>2018-10-16 15:07:28 +0100
committerDavid Srbecky <dsrbecky@google.com>2018-10-22 14:35:07 +0100
commit28f6cff854b61e39f953e69ebf3646ee9826ec82 (patch)
treea98e2bf1746d93079b7abe54e278ba87f0aef360 /compiler/optimizing/graph_visualizer.cc
parent06ef9aa6a562a3a1f7c1f9b91aadda5018f8ba86 (diff)
Cache the value of MterpShouldSwitchInterpreters()
Add field to the Thread object which stores the value instead (negated). Explicitly update the field when relevant state changes (which is rare). This speeds up golem interpreter benchmarks by 3.5% on average with some benchmarks up to 15% faster. Test: test.py -b -r --interpreter --host Change-Id: If2df0d3bf9e69ab50c30102b2648e997927c34d8
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions