commit | 9fdb31e12023d94c710a766a54d8a57c91a196f9 | [log] [tgz] |
---|---|---|
author | Nicolas Geoffray <ngeoffray@google.com> | Wed Jul 01 12:56:46 2015 +0100 |
committer | Nicolas Geoffray <ngeoffray@google.com> | Wed Jul 01 13:54:32 2015 +0100 |
tree | 22be0afa06ceca65cb4d1ed457c0ea720845e9a4 | |
parent | 3b0667c1d68ba88c71b031757b757dca659afd69 [diff] [blame] |
Do not do a type check when setting null to an array. Change-Id: I7387d45aea697d4a3de273335647220a815a992b
diff --git a/compiler/optimizing/instruction_simplifier.cc b/compiler/optimizing/instruction_simplifier.cc index e375f7b..62f90c2 100644 --- a/compiler/optimizing/instruction_simplifier.cc +++ b/compiler/optimizing/instruction_simplifier.cc
@@ -398,6 +398,10 @@ } } + if (value->IsNullConstant()) { + instruction->ClearNeedsTypeCheck(); + } + if (!value->CanBeNull()) { instruction->ClearValueCanBeNull(); }