diff options
author | 2023-12-04 12:05:00 +0000 | |
---|---|---|
committer | 2024-01-03 14:48:12 +0000 | |
commit | 41c5dde40d1c75d36a7f984c8d72ec65fbff3111 (patch) | |
tree | 7fda2cbd5c320582b3f7b65a394d33bf9d7fed58 /compiler/optimizing/graph_visualizer.cc | |
parent | c4aff3d48d3040b9b5a42b9f807e7d2671e138c0 (diff) |
Run optimizations with baseline compilation.
And introduce inlined inline caches, which customize an inline cache for
the top-level method being compiled.
Reduces jank on compose view scrolling for 20 seconds:
- For Go Mokey:
- Before: ~525 frames drawn / ~14.64% janky frames
- After: ~891 frames drawn / ~4.74% janky frames
- For Pixel 8 pro:
- Before: ~2443 frames drawn / ~0.91% janky frames
- After: ~2447 frames drawn / ~0.65% janky frames
Bug: 313040662
Test: test.py
Change-Id: Ibaa746c6bd3c665b18ec9cd29cb477cf21023467
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
-rw-r--r-- | compiler/optimizing/graph_visualizer.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/optimizing/graph_visualizer.cc b/compiler/optimizing/graph_visualizer.cc index b7f7a0f550..afbf941355 100644 --- a/compiler/optimizing/graph_visualizer.cc +++ b/compiler/optimizing/graph_visualizer.cc @@ -867,7 +867,8 @@ class HGraphVisualizerPrinter : public HGraphDelegateVisitor { std::ostringstream oss; oss << pass_name_; if (!IsDebugDump()) { - oss << " (" << (is_after_pass_ ? "after" : "before") + oss << " (" << (GetGraph()->IsCompilingBaseline() ? "baseline " : "") + << (is_after_pass_ ? "after" : "before") << (graph_in_bad_state_ ? ", bad_state" : "") << ")"; } PrintProperty("name", oss.str().c_str()); |