File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17662,7 +17662,7 @@ X86TargetLowering::LowerEXTRACT_VECTOR_ELT(SDValue Op,
17662
17662
17663
17663
if (!IdxC) {
17664
17664
// Its more profitable to go through memory (1 cycles throughput)
17665
- // than using VMOVD + VPERMV/PSHUFB sequence ( 2/3 cycles throughput)
17665
+ // than using VMOVD + VPERMV/PSHUFB sequence (2/3 cycles throughput)
17666
17666
// IACA tool was used to get performance estimation
17667
17667
// (https://software.intel.com/en-us/articles/intel-architecture-code-analyzer)
17668
17668
//
@@ -17742,7 +17742,7 @@ X86TargetLowering::LowerEXTRACT_VECTOR_ELT(SDValue Op,
17742
17742
// TODO: We only extract a single element from v16i8, we can probably afford
17743
17743
// to be more aggressive here before using the default approach of spilling to
17744
17744
// stack.
17745
- if (VT.getSizeInBits() == 8 && Op->isOnlyUserOf(Vec.getNode())) {
17745
+ if (VT == MVT::i8 && Op->isOnlyUserOf(Vec.getNode())) {
17746
17746
// Extract either the lowest i32 or any i16, and extract the sub-byte.
17747
17747
int DWordIdx = IdxVal / 4;
17748
17748
if (DWordIdx == 0) {
You can’t perform that action at this time.
0 commit comments