diff options
Diffstat (limited to 'arm_compute/core/TensorShape.h')
-rw-r--r-- | arm_compute/core/TensorShape.h | 11 |
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 */ |