From b133ec6c39b4c953ed815ec731b0270f0d8f0ed9 Mon Sep 17 00:00:00 2001 From: Roland Levillain Date: Wed, 23 Mar 2016 12:40:35 +0000 Subject: 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 --- compiler/optimizing/graph_visualizer.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/optimizing/graph_visualizer.cc') 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 { -- cgit v1.2.3