summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-08-02 21:07:07 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-08-02 21:07:07 +0000
commit794f7591ecaa38c32a2452c870a8e7b3e1506191 (patch)
tree914ad4b1d91829c27757a370c22cd32dd18ece1c /llvm/lib
parente7694f34ab6a12b8bb480cbfcb396d0a64fe965f (diff)
downloadbcm5719-llvm-794f7591ecaa38c32a2452c870a8e7b3e1506191.tar.gz
bcm5719-llvm-794f7591ecaa38c32a2452c870a8e7b3e1506191.zip
[TargetLowering] SimplifyMultipleUseDemandedBits - don't assume INSERT_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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 89181fee257..dd819eb7e2d 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/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()) &&
!DemandedElts[CIdx->getZExtValue()])
return Vec;
OpenPOWER on IntegriCloud