From 5d75d4a236bd4d73b514bd81d902fbdbd660b00a Mon Sep 17 00:00:00 2001 From: Giorgio Arena Date: Thu, 15 Apr 2021 12:54:53 +0100 Subject: Fix validation bug in release mode for armv7 Resolve COMPMID-4377, COMPMID-4379 Change-Id: I302f08b5bf0afb5295d31843fea20181d9283658 Signed-off-by: Giorgio Arena Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5435 Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- arm_compute/core/TensorShape.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'arm_compute/core/TensorShape.h') diff --git a/arm_compute/core/TensorShape.h b/arm_compute/core/TensorShape.h index 9f6cf773e4..b6ab9dc75a 100644 --- a/arm_compute/core/TensorShape.h +++ b/arm_compute/core/TensorShape.h @@ -57,18 +57,7 @@ public: apply_dimension_correction(); } /** Allow instances of this class to be copy constructed */ - // Avoid -O3 aggressive optimization for the copy constructor when building in release mode for armv7a -#if defined(LINUX_V7_RELEASE) -#pragma GCC push_options -#pragma GCC optimize("O2") - TensorShape(const TensorShape &other) - : Dimensions(static_cast(other)) - { - } -#pragma GCC pop_options -#else // defined(LINUX_V7_RELEASE) TensorShape(const TensorShape &) = default; -#endif // defined(LINUX_V7_RELEASE) /** Allow instances of this class to be copied */ TensorShape &operator=(const TensorShape &) = default; /** Allow instances of this class to be move constructed */ -- cgit v1.2.1