Fix unaligned loads in ploadLhs & ploadRhs for P8.

(cherry picked from commit 8dcf3e38ba9913021ce6a831836a59217e21baf2)
This commit is contained in:
Chip-Kerchner 2021-08-16 20:26:50 -05:00 committed by Everton Constantino
parent 926e1a8226
commit f57dec64ef
2 changed files with 2 additions and 2 deletions

View File

@ -1113,7 +1113,7 @@ EIGEN_ALWAYS_INLINE void pgerc(PacketBlock<Packet,N>* accReal, PacketBlock<Packe
template<typename Scalar, typename Packet>
EIGEN_ALWAYS_INLINE Packet ploadLhs(const Scalar* lhs)
{
return *reinterpret_cast<Packet *>(const_cast<Scalar *>(lhs));
return ploadu<Packet>(lhs);
}
// Zero the accumulator on PacketBlock.

View File

@ -214,7 +214,7 @@ EIGEN_ALWAYS_INLINE void bcouple_common<Packet2d, Packet1cd>(PacketBlock<Packet2
template<typename Scalar, typename Packet>
EIGEN_ALWAYS_INLINE Packet ploadRhs(const Scalar* rhs)
{
return *reinterpret_cast<Packet *>(const_cast<Scalar *>(rhs));
return ploadu<Packet>(rhs);
}
} // end namespace internal