summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2020-05-11 15:16:24 +0100
committer Vladimir Marko <vmarko@google.com> 2020-05-13 08:00:22 +0000
commit5a62af5dc9e9bafeffcac7820e1a5b7586e58477 (patch)
tree94308509fc9e9610c2d058e0458648807ccb5ae8 /compiler/optimizing/nodes.h
parentaba509f1624de7fd68409508d7c1600308a4ccc3 (diff)
Optimizing: Create fewer handles in inliner.
Use ObjPtr<> and bool instead of ReferenceTypeInfo to avoid creating unnecessary temporary Handle<>s. This should reduce compiler memory use a little bit. And rewrite ReferenceTypePropagation::IsAdmissible() with an explicit loop instead of a tail recursion. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Test: aosp_taimen-userdebug boots. Change-Id: Ic9952134d669b336fb28e6ea13117446d11dc145
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r--compiler/optimizing/nodes.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index e02a393c1b..7aeab722f0 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -272,13 +272,6 @@ class ReferenceTypeInfo : ValueObject {
return GetTypeHandle()->IsAssignableFrom(rti.GetTypeHandle().Get());
}
- bool IsStrictSupertypeOf(ReferenceTypeInfo rti) const REQUIRES_SHARED(Locks::mutator_lock_) {
- DCHECK(IsValid());
- DCHECK(rti.IsValid());
- return GetTypeHandle().Get() != rti.GetTypeHandle().Get() &&
- GetTypeHandle()->IsAssignableFrom(rti.GetTypeHandle().Get());
- }
-
// Returns true if the type information provide the same amount of details.
// Note that it does not mean that the instructions have the same actual type
// (because the type can be the result of a merge).