Skip to content
Browse files

[TargetLowering] SimplifyMultipleUseDemandedBits - don't assume INSER…

…T_VECTOR_ELT value type is simple.

Noticed by inspection - this was copied from the X86 target equivalent where we can assume its legal/simple.

llvm-svn: 367721
  • Loading branch information
RKSimon committed Aug 2, 2019
1 parent e7694f3 commit 794f7591ecaa38c32a2452c870a8e7b3e1506191
Showing with 1 addition and 1 deletion.
  1. +1 −1 llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -680,7 +680,7 @@ SDValue TargetLowering::SimplifyMultipleUseDemandedBits(
// If we don't demand the inserted element, return the base vector.
SDValue Vec = Op.getOperand(0);
auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2));
MVT VecVT = Vec.getSimpleValueType();
EVT VecVT = Vec.getValueType();
if (CIdx && CIdx->getAPIntValue().ult(VecVT.getVectorNumElements()) &&
return Vec;

0 comments on commit 794f759

Please sign in to comment.
You can’t perform that action at this time.