summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2015-08-12 18:28:14 -0700
committer Nicolas Geoffray <ngeoffray@google.com> 2015-08-12 18:32:54 -0700
commitefa8468c78fdd808043dfb664b56541f3f2dd0e8 (patch)
treeeeec64ba00456b737b43eaf3d9e61f04fafdfa95 /compiler/optimizing/nodes.h
parent6a6bd17f68c02139630796a615bd38b929c02e7a (diff)
Small optimization improvements.
- Tune CanBeNull for HBoundType. - Remove LoadClass when we know the class is loaded. - Tune CanBeNull for StringInit. Change-Id: I564ed33a506d65e991a514342bdfd1610bed0cf5
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r--compiler/optimizing/nodes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index dba9233240..efb708974d 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -3023,6 +3023,10 @@ class HInvokeStaticOrDirect : public HInvoke {
return false;
}
+ bool CanBeNull() const OVERRIDE {
+ return return_type_ == Primitive::kPrimNot && !IsStringInit();
+ }
+
InvokeType GetInvokeType() const { return invoke_type_; }
bool IsRecursive() const { return is_recursive_; }
bool NeedsDexCache() const OVERRIDE { return !IsRecursive(); }