diff options
| author | 2016-03-24 10:25:51 +0000 | |
|---|---|---|
| committer | 2016-03-24 10:25:51 +0000 | |
| commit | 0ced281ae6216c29f57ca0f8b7388a722e8da97b (patch) | |
| tree | b7f8273bb117c8ec8f8546ed937a8c0a96d2e5de /compiler/optimizing/inliner.cc | |
| parent | 843a65556616183a36792bbcc1632c6d8d0e78b2 (diff) | |
| parent | 1a65388f1d86bb232c2e44fecb44cebe13105d2e (diff) | |
Merge "Clean up art::HConstant predicates."
Diffstat (limited to 'compiler/optimizing/inliner.cc')
| -rw-r--r-- | compiler/optimizing/inliner.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/optimizing/inliner.cc b/compiler/optimizing/inliner.cc index 440a2821c1..7114dc5992 100644 --- a/compiler/optimizing/inliner.cc +++ b/compiler/optimizing/inliner.cc @@ -920,8 +920,7 @@ bool HInliner::TryPatternSubstitution(HInvoke* invoke_instruction, bool needs_constructor_barrier = false; for (size_t i = 0; i != number_of_iputs; ++i) { HInstruction* value = GetInvokeInputForArgVRegIndex(invoke_instruction, iput_args[i]); - if (!value->IsConstant() || - (!value->AsConstant()->IsZero() && !value->IsNullConstant())) { + if (!value->IsConstant() || !value->AsConstant()->IsZeroBitPattern()) { if (dex_cache.GetReference() == nullptr) { dex_cache = handles_->NewHandle(resolved_method->GetDexCache()); } |