From 12e8d57108c50d8a63605c6eb0144c838c128337 Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Wed, 16 Jun 2021 14:36:42 -0700 Subject: Remove pset, replace with ploadu. We can't make guarantees on alignment for existing calls to `pset`, so we should default to loading unaligned. But in that case, we should just use `ploadu` directly. For loading constants, this load should hopefully get optimized away. This is causing segfaults in Google Maps. --- Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h') diff --git a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h index 8f1c1a874..bb4f719a8 100644 --- a/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +++ b/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h @@ -19,12 +19,6 @@ namespace Eigen { namespace internal { -template EIGEN_DEVICE_FUNC inline Packet -pset(const typename unpacket_traits::type (&a)[N] /* a */) { - EIGEN_STATIC_ASSERT(unpacket_traits::size == N, THE_ARRAY_SIZE_SHOULD_EQUAL_WITH_PACKET_SIZE); - return pload(a); -} - // Creates a Scalar integer type with same bit-width. template struct make_integer; template<> struct make_integer { typedef numext::int32_t type; }; -- cgit v1.2.3