diff options
author | Roland Levillain <rpl@google.com> | 2016-03-23 12:40:35 +0000 |
---|---|---|
committer | Roland Levillain <rpl@google.com> | 2016-03-23 12:40:35 +0000 |
commit | b133ec6c39b4c953ed815ec731b0270f0d8f0ed9 (patch) | |
tree | 1829ea0aa9d8351cf28e0ff55cc6aa25c7a248d6 /compiler/optimizing/graph_visualizer.cc | |
parent | 6fa06e6f5a92cd318021afad9b036126438b2de4 (diff) |
Ensure object ArraySet with null value does not need a type check.
The art::PrepareForRegisterAllocation visitor can remove an
art::BoundType instruction as value input of an
art::ArraySet instruction, possibly replacing it with an
art::NullConstant. If this happens, remove the need for a
type check in this art::ArraySet.
Bug: 27638110
Change-Id: I6270f8a8e22822a24d8a5919df427ca9c64d121b
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
-rw-r--r-- | compiler/optimizing/graph_visualizer.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/optimizing/graph_visualizer.cc b/compiler/optimizing/graph_visualizer.cc index 4f1e90cd7f..3a9d242df2 100644 --- a/compiler/optimizing/graph_visualizer.cc +++ b/compiler/optimizing/graph_visualizer.cc @@ -382,6 +382,8 @@ class HGraphVisualizerPrinter : public HGraphDelegateVisitor { void VisitArraySet(HArraySet* array_set) OVERRIDE { StartAttributeStream("value_can_be_null") << std::boolalpha << array_set->GetValueCanBeNull() << std::noboolalpha; + StartAttributeStream("needs_type_check") << std::boolalpha + << array_set->NeedsTypeCheck() << std::noboolalpha; } void VisitCompare(HCompare* compare) OVERRIDE { |