aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/TensorShape.h
diff options
context:
space:
mode:
authorGiorgio Arena <giorgio.arena@arm.com>2021-04-15 12:54:53 +0100
committerGiorgio Arena <giorgio.arena@arm.com>2021-04-15 14:11:16 +0000
commit5d75d4a236bd4d73b514bd81d902fbdbd660b00a (patch)
treee4323ea0685007e1fe8747860b75d99cc49a9334 /arm_compute/core/TensorShape.h
parentc77132168f47f89118fd285011d84a470a49fc4a (diff)
downloadComputeLibrary-5d75d4a236bd4d73b514bd81d902fbdbd660b00a.tar.gz
Fix validation bug in release mode for armv7
Resolve COMPMID-4377, COMPMID-4379 Change-Id: I302f08b5bf0afb5295d31843fea20181d9283658 Signed-off-by: Giorgio Arena <giorgio.arena@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5435 Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/TensorShape.h')
-rw-r--r--arm_compute/core/TensorShape.h11
1 files changed, 0 insertions, 11 deletions
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<const Dimensions &>(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 */