diff options
| author | 2017-01-11 18:08:03 +0000 | |
|---|---|---|
| committer | 2017-01-11 18:08:04 +0000 | |
| commit | 79f9928fc9e0a88430f3329069bfb2f9a0d37f0c (patch) | |
| tree | e3142e4829c808c3df1059f3b05c0b3a37193ce9 /compiler/optimizing/inliner.cc | |
| parent | 716eb25353390f699778a79d69006a5b8d8289c2 (diff) | |
| parent | 02e3092f8d98f339588e48691db77f227b48ac1e (diff) | |
Merge "ART: Compiler support for invoke-polymorphic."
Diffstat (limited to 'compiler/optimizing/inliner.cc')
| -rw-r--r-- | compiler/optimizing/inliner.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/optimizing/inliner.cc b/compiler/optimizing/inliner.cc index c970e5cbba..d7da46bbe7 100644 --- a/compiler/optimizing/inliner.cc +++ b/compiler/optimizing/inliner.cc @@ -308,8 +308,10 @@ ArtMethod* HInliner::TryCHADevirtualization(ArtMethod* resolved_method) { } bool HInliner::TryInline(HInvoke* invoke_instruction) { - if (invoke_instruction->IsInvokeUnresolved()) { - return false; // Don't bother to move further if we know the method is unresolved. + if (invoke_instruction->IsInvokeUnresolved() || + invoke_instruction->IsInvokePolymorphic()) { + return false; // Don't bother to move further if we know the method is unresolved or an + // invoke-polymorphic. } ScopedObjectAccess soa(Thread::Current()); |