summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-12-07 09:18:44 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-12-07 09:18:44 +0000
commitd498dee7a28c8c4a1349a2664eae213c8b7fa1ac (patch)
tree7024a999976429d96289191118381bba5603d3f0 /llvm/lib/CodeGen
parentd765108cf19c5d12dd35ae240a188a0cbd7dec9b (diff)
downloadbcm5719-llvm-d498dee7a28c8c4a1349a2664eae213c8b7fa1ac.tar.gz
bcm5719-llvm-d498dee7a28c8c4a1349a2664eae213c8b7fa1ac.zip
[SelectionDAG] Don't pass on DemandedElts when handling SCALAR_TO_VECTOR
Fixes an assertion: llc: lib/CodeGen/SelectionDAG/SelectionDAG.cpp:2200: llvm::KnownBits llvm::SelectionDAG::computeKnownBits(llvm::SDValue, const llvm::APInt&, unsigned int) const: Assertion `(!Op.getValueType().isVector() || NumElts == Op.getValueType().getVectorNumElements()) && "Unexpected vector size"' failed. Committed on behalf of: @pendingchaos (Rhys Perry) Differential Revision: https://reviews.llvm.org/D55223 llvm-svn: 348574
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index ddc9dc8e539..7e9c5debb25 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -2352,7 +2352,7 @@ KnownBits SelectionDAG::computeKnownBits(SDValue Op, const APInt &DemandedElts,
break;
SDValue N0 = Op.getOperand(0);
- Known = computeKnownBits(N0, DemandedElts, Depth + 1);
+ Known = computeKnownBits(N0, Depth + 1);
if (N0.getValueSizeInBits() != BitWidth)
Known = Known.trunc(BitWidth);
OpenPOWER on IntegriCloud