@@ -10732,16 +10732,15 @@ static SDValue lower256BitVectorShuffle(SDValue Op, SDValue V1, SDValue V2,
10732
10732
10733
10733
/// \brief Try to lower a vector shuffle as a 128-bit shuffles.
10734
10734
static SDValue lowerV4X128VectorShuffle(SDLoc DL, MVT VT,
10735
- ArrayRef<int> Mask,
10736
- SDValue V1, SDValue V2,
10737
- SelectionDAG &DAG) {
10735
+ ArrayRef<int> Mask,
10736
+ SDValue V1, SDValue V2,
10737
+ SelectionDAG &DAG) {
10738
10738
assert(VT.getScalarSizeInBits() == 64 &&
10739
10739
"Unexpected element type size for 128bit shuffle.");
10740
10740
10741
10741
// To handle 256 bit vector requires VLX and most probably
10742
10742
// function lowerV2X128VectorShuffle() is better solution.
10743
- assert(VT.getSizeInBits() == 512 &&
10744
- "Unexpected vector size for 128bit shuffle.");
10743
+ assert(VT.is512BitVector() && "Unexpected vector size for 128bit shuffle.");
10745
10744
10746
10745
SmallVector<int, 4> WidenedMask;
10747
10746
if (!canWidenShuffleElements(Mask, WidenedMask))
@@ -10806,8 +10805,8 @@ static SDValue lowerV8F64VectorShuffle(SDValue Op, SDValue V1, SDValue V2,
10806
10805
10807
10806
/// \brief Handle lowering of 16-lane 32-bit floating point shuffles.
10808
10807
static SDValue lowerV16F32VectorShuffle(SDValue Op, SDValue V1, SDValue V2,
10809
- const X86Subtarget *Subtarget,
10810
- SelectionDAG &DAG) {
10808
+ const X86Subtarget *Subtarget,
10809
+ SelectionDAG &DAG) {
10811
10810
SDLoc DL(Op);
10812
10811
assert(V1.getSimpleValueType() == MVT::v16f32 && "Bad operand type!");
10813
10812
assert(V2.getSimpleValueType() == MVT::v16f32 && "Bad operand type!");
@@ -10846,8 +10845,8 @@ static SDValue lowerV8I64VectorShuffle(SDValue Op, SDValue V1, SDValue V2,
10846
10845
10847
10846
/// \brief Handle lowering of 16-lane 32-bit integer shuffles.
10848
10847
static SDValue lowerV16I32VectorShuffle(SDValue Op, SDValue V1, SDValue V2,
10849
- const X86Subtarget *Subtarget,
10850
- SelectionDAG &DAG) {
10848
+ const X86Subtarget *Subtarget,
10849
+ SelectionDAG &DAG) {
10851
10850
SDLoc DL(Op);
10852
10851
assert(V1.getSimpleValueType() == MVT::v16i32 && "Bad operand type!");
10853
10852
assert(V2.getSimpleValueType() == MVT::v16i32 && "Bad operand type!");
0 commit comments