aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util
diff options
context:
space:
mode:
authorGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-02-25 01:07:28 +0000
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-02-25 01:07:28 +0000
commit235bcfe08d4db305d21f6b8adc34bc30861444c8 (patch)
tree006d64e840797b7b159ad88302e38cdf413fe5f0 /Eigen/src/Core/util
parentd7a42eade60ba64821c7879859837a4ea70ba026 (diff)
Revert "Pick full packet unconditionally when EIGEN_UNALIGNED_VECTORIZE"
Diffstat (limited to 'Eigen/src/Core/util')
-rw-r--r--Eigen/src/Core/util/XprHelper.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/Eigen/src/Core/util/XprHelper.h b/Eigen/src/Core/util/XprHelper.h
index 22f8bdd6c..26aa609fe 100644
--- a/Eigen/src/Core/util/XprHelper.h
+++ b/Eigen/src/Core/util/XprHelper.h
@@ -194,20 +194,8 @@ template<typename T> struct unpacket_traits
};
};
-// If we vectorize regardless of alignment, always pick the full-sized packet,
-// if we have enough data to process.
-//
-// Otherwise, pick the packet size we know is going to work with the alignment
-// of the given data. See
-// <https://gitlab.com/libeigen/eigen/merge_requests/46#note_270578113> for more
-// information.
-#if EIGEN_UNALIGNED_VECTORIZE
template<int Size, typename PacketType,
bool Stop = Size==Dynamic || Size >= unpacket_traits<PacketType>::size || is_same<PacketType,typename unpacket_traits<PacketType>::half>::value>
-#else
-template<int Size, typename PacketType,
- bool Stop = Size==Dynamic || (Size%unpacket_traits<PacketType>::size)==0 || is_same<PacketType,typename unpacket_traits<PacketType>::half>::value>
-#endif
struct find_best_packet_helper;
template< int Size, typename PacketType>