diff options
author | 2023-04-25 14:33:23 +0000 | |
---|---|---|
committer | 2023-04-25 16:29:00 +0000 | |
commit | b5fcab944b3786f27ab6b698685109bfc7f785fd (patch) | |
tree | 18b5cb5c332b21fc5ee5a6a982ee9d41cf41fe84 /compiler/optimizing/nodes.h | |
parent | c8507c86869c358fb0880ad49e00ca44763bfb70 (diff) |
Revert "Don't enable intrinsic optimizations in debuggable runtime"
This reverts commit cb008914fbc5a2334e3c00366afdb5f8af5a23ba.
Reason for revert: Failures on some configs
https://buganizer.corp.google.com/issues/279562617
Change-Id: I4d26cd00e76d8ec4aef76ab26987418eab24d217
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 40 |
1 files changed, 14 insertions, 26 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 28112d176a..fc5d2196da 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -4756,7 +4756,7 @@ class HInvoke : public HVariableInputSizeInstruction { bool IsIntrinsic() const { return intrinsic_ != Intrinsics::kNone; } ArtMethod* GetResolvedMethod() const { return resolved_method_; } - void SetResolvedMethod(ArtMethod* method, bool enable_intrinsic_opt); + void SetResolvedMethod(ArtMethod* method); MethodReference GetMethodReference() const { return method_reference_; } @@ -4785,8 +4785,7 @@ class HInvoke : public HVariableInputSizeInstruction { MethodReference method_reference, ArtMethod* resolved_method, MethodReference resolved_method_reference, - InvokeType invoke_type, - bool enable_intrinsic_opt) + InvokeType invoke_type) : HVariableInputSizeInstruction( kind, return_type, @@ -4802,7 +4801,7 @@ class HInvoke : public HVariableInputSizeInstruction { intrinsic_optimizations_(0) { SetPackedField<InvokeTypeField>(invoke_type); SetPackedFlag<kFlagCanThrow>(true); - SetResolvedMethod(resolved_method, enable_intrinsic_opt); + SetResolvedMethod(resolved_method); } DEFAULT_COPY_CONSTRUCTOR(Invoke); @@ -4835,8 +4834,7 @@ class HInvokeUnresolved final : public HInvoke { method_reference, nullptr, MethodReference(nullptr, 0u), - invoke_type, - /* enable_intrinsic_opt= */ false) { + invoke_type) { } bool IsClonable() const override { return true; } @@ -4859,8 +4857,7 @@ class HInvokePolymorphic final : public HInvoke { // to pass intrinsic information to the HInvokePolymorphic node. ArtMethod* resolved_method, MethodReference resolved_method_reference, - dex::ProtoIndex proto_idx, - bool enable_intrinsic_opt) + dex::ProtoIndex proto_idx) : HInvoke(kInvokePolymorphic, allocator, number_of_arguments, @@ -4870,8 +4867,7 @@ class HInvokePolymorphic final : public HInvoke { method_reference, resolved_method, resolved_method_reference, - kPolymorphic, - enable_intrinsic_opt), + kPolymorphic), proto_idx_(proto_idx) { } @@ -4893,8 +4889,7 @@ class HInvokeCustom final : public HInvoke { uint32_t call_site_index, DataType::Type return_type, uint32_t dex_pc, - MethodReference method_reference, - bool enable_intrinsic_opt) + MethodReference method_reference) : HInvoke(kInvokeCustom, allocator, number_of_arguments, @@ -4904,8 +4899,7 @@ class HInvokeCustom final : public HInvoke { method_reference, /* resolved_method= */ nullptr, MethodReference(nullptr, 0u), - kStatic, - enable_intrinsic_opt), + kStatic), call_site_index_(call_site_index) { } @@ -4952,8 +4946,7 @@ class HInvokeStaticOrDirect final : public HInvoke { DispatchInfo dispatch_info, InvokeType invoke_type, MethodReference resolved_method_reference, - ClinitCheckRequirement clinit_check_requirement, - bool enable_intrinsic_opt) + ClinitCheckRequirement clinit_check_requirement) : HInvoke(kInvokeStaticOrDirect, allocator, number_of_arguments, @@ -4966,8 +4959,7 @@ class HInvokeStaticOrDirect final : public HInvoke { method_reference, resolved_method, resolved_method_reference, - invoke_type, - enable_intrinsic_opt), + invoke_type), dispatch_info_(dispatch_info) { SetPackedField<ClinitCheckRequirementField>(clinit_check_requirement); } @@ -5179,8 +5171,7 @@ class HInvokeVirtual final : public HInvoke { MethodReference method_reference, ArtMethod* resolved_method, MethodReference resolved_method_reference, - uint32_t vtable_index, - bool enable_intrinsic_opt) + uint32_t vtable_index) : HInvoke(kInvokeVirtual, allocator, number_of_arguments, @@ -5190,8 +5181,7 @@ class HInvokeVirtual final : public HInvoke { method_reference, resolved_method, resolved_method_reference, - kVirtual, - enable_intrinsic_opt), + kVirtual), vtable_index_(vtable_index) { } @@ -5243,8 +5233,7 @@ class HInvokeInterface final : public HInvoke { ArtMethod* resolved_method, MethodReference resolved_method_reference, uint32_t imt_index, - MethodLoadKind load_kind, - bool enable_intrinsic_opt) + MethodLoadKind load_kind) : HInvoke(kInvokeInterface, allocator, number_of_arguments + (NeedsCurrentMethod(load_kind) ? 1 : 0), @@ -5254,8 +5243,7 @@ class HInvokeInterface final : public HInvoke { method_reference, resolved_method, resolved_method_reference, - kInterface, - enable_intrinsic_opt), + kInterface), imt_index_(imt_index), hidden_argument_load_kind_(load_kind) { } |