mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-28 08:59:28 +00:00
[X86][SSE] Simplify float domain requirement in unary shuffle matching.
The AVX1-only limit is never actually required in matchUnaryVectorShuffle git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291244 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
943d501146
commit
2634e452b0
@ -25961,8 +25961,7 @@ static bool matchUnaryVectorShuffle(MVT MaskVT, ArrayRef<int> Mask,
|
||||
unsigned &Shuffle, MVT &SrcVT, MVT &DstVT) {
|
||||
unsigned NumMaskElts = Mask.size();
|
||||
unsigned MaskEltSize = MaskVT.getScalarSizeInBits();
|
||||
bool FloatDomain = MaskVT.isFloatingPoint() ||
|
||||
(!Subtarget.hasAVX2() && MaskVT.is256BitVector());
|
||||
bool FloatDomain = MaskVT.isFloatingPoint();
|
||||
|
||||
// Match against a VZEXT_MOVL instruction, SSE1 only supports 32-bits (MOVSS).
|
||||
if (((MaskEltSize == 32) || (MaskEltSize == 64 && Subtarget.hasSSE2())) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user