diff options
author | 2023-11-24 12:02:13 +0100 | |
---|---|---|
committer | 2023-11-27 11:43:58 +0000 | |
commit | 7f515181fdbe88a139d973d3481964d9cb7ed118 (patch) | |
tree | dcd9802bb4eed26591d69972e605d27c68164f98 /compiler/optimizing/nodes.h | |
parent | db8d042c6dc12d9d1ba5ff2526ccc86a077570ca (diff) |
Simplify boxing followed by unboxing.
Also mark boxing `valueOf()` intrinsics as never null
to avoid creating unnecessary `HNullCheck` instructions.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: I86e7721e3af6c59407aa2ddfc1bd11bd2fdac83c
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 04d51328f2..4db72a68e3 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -5065,9 +5065,7 @@ class HInvokeStaticOrDirect final : public HInvoke { return false; } - bool CanBeNull() const override { - return GetType() == DataType::Type::kReference && !IsStringInit(); - } + bool CanBeNull() const override; MethodLoadKind GetMethodLoadKind() const { return dispatch_info_.method_load_kind; } CodePtrLocation GetCodePtrLocation() const { |